# How to handle organization invitation in React?

**URL:** <https://community.auth0.com/t/how-to-handle-organization-invitation-in-react/129626>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [March 13, 2024, 4:31pm UTC](https://community.auth0.com/t/how-to-handle-organization-invitation-in-react/129626 "2024-03-13T16:31:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![omer2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omer2/32/55453_2.png) [@omer2](https://community.auth0.com/u/omer2)\
**Post date:** [March 13, 2024, 4:31pm UTC](https://community.auth0.com/t/how-to-handle-organization-invitation-in-react/129626/1 "2024-03-13T16:31:08Z")

</div>

I’m using auth0 to enable my customers logging into their dashboard. each user must belong to organization. I am using a google authentication, so I can’t add users as members before they first loggin in, so I need to use the invitation feature.

I’m trying to login using the invitation and organization URL params recieved from the invite, but didn’t have any success:

```auto
let invitation = params.get("invitation") || undefined;
    let organization = params.get('organization') || undefined;
    if(invitation && organization) {
      let result = await loginWithRedirect({
        authorizationParams: {
          invitation,
          organization,
        }});

```

---

<div class="post-metadata">

**Author:** ![omer2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omer2/32/55453_2.png) [@omer2](https://community.auth0.com/u/omer2)\
**Post date:** [March 19, 2024, 7:19am UTC](https://community.auth0.com/t/how-to-handle-organization-invitation-in-react/129626/2 "2024-03-19T07:19:54Z")

</div>

any help? I need some way to handle invitations

---

<div class="post-metadata">

**Author:** ![dave-mogi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dave-mogi/32/54114_2.png) [@dave-mogi](https://community.auth0.com/u/dave-mogi)\
**Post date:** [September 18, 2024, 3:49pm UTC](https://community.auth0.com/t/how-to-handle-organization-invitation-in-react/129626/3 "2024-09-18T15:49:41Z")

</div>

I think I may be having the same issue. See: [Organization Invitation Does not Create User](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545)

Did you ever figure it out?

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [April 2, 2025, 6:31pm UTC](https://community.auth0.com/t/how-to-handle-organization-invitation-in-react/129626/5 "2025-04-02T18:31:40Z")

</div>

Hi @omer2,

Use these docs to learn how to use the Management API to create a user invite:

> **[Send Organization Membership Invitations](https://auth0.com/docs/manage-users/organizations/configure-organizations/send-membership-invitations#management-api)**
>
> Learn how to send membership invitations for Organizations using the Auth0 Dashboard or Management API.

If you want to check out the Management API endpoint for creating organization invites you can follow this link

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2/organizations/post-invitations)**

If you have any other question feel free to let us know.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 16, 2025, 6:31pm UTC](https://community.auth0.com/t/how-to-handle-organization-invitation-in-react/129626/6 "2025-04-16T18:31:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
