# Organization Invitation Does not Create User

**URL:** <https://community.auth0.com/t/organization-invitation-does-not-create-user/146545>\
**Category:** Get Help\
**Tags:** organizations-management-api, management-api\
**Created:** [September 12, 2024, 3:05am UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545 "2024-09-12T03:05:39Z")\
**Posts on this page:** 7\
**Page:** 1

<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 12, 2024, 3:05am UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545/1 "2024-09-12T03:05:39Z")

</div>

I’m using organizations with an SPA. My backend calls the management API `Create invitations to an organization` route and generates the URL. I send the invitation email with URL to the email address using my email service. The URL has the correct invitation ticket, and org ID and name query params. In my app, when I detect an invitation ticket in the query, I call `loginWithRedirect` with the `invitation` and `organization` auth params:

```auto
  const url = window.location.href;
  const inviteMatches = url.match(/invitation=([^&]+)/);
  const orgMatches = url.match(/organization=([^&]+)/);

  if (inviteMatches && orgMatches) {
    loginWithRedirect({
      authorizationParams: {
        organization: orgMatches[1],
        invitation: inviteMatches[1],
      },
    });
  }

```

This navigates the user to the Auth0 “You’ve Been Invited” page, where they are asked to login with email and password. The issue is that, of course, they can’t login! They don’t have a user or password yet!

The documentation implies that a user will be created if it doesn’t exist, but that is not happening.  
How is this flow supposed to work?

Thanks,  
Dave

---

<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 12, 2024, 11:52pm UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545/2 "2024-09-12T23:52:22Z")

</div>

From [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members)

> If you would like to assign a member to an [Organization](https://auth0.com/docs/manage-users/organizations/organizations-overview), but the user _does not yet exist in your data store_ (or the user exists in your data store but is not yet a member of your organization), you can invite them to the organization. In this case, the user will receive an email _containing a link that will allow them to create an account_ or log in and join the organization, optionally with predefined roles, and be redirected to your application so that they can immediately start using it.

This makes it seem like inviting an email will give the invitee a way to sign up as part of the invitation acceptance process.  
Is that correct?

---

<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 17, 2024, 7:07am UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545/3 "2024-09-17T07:07:42Z")

</div>

Does anyone else have this working? If so, how’d you set it up?

---

<div class="post-metadata">

**Author:** ![phil.puleo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/phil.puleo/32/45004_2.png) [@phil.puleo](https://community.auth0.com/u/phil.puleo)\
**Post date:** [December 18, 2024, 4:37pm UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545/4 "2024-12-18T16:37:25Z")

</div>

@dave-mogi I did have this flow working as you described and users were able to create accounts after receiving the organization invitation email or link. Recently this stopped working for both my dev and prod Auth0 tenants. I’m still troubleshooting. I would be interested to hear if/how you solved this.

---

<div class="post-metadata">

**Author:** ![mziemer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mziemer/32/73124_2.png) [@mziemer](https://community.auth0.com/u/mziemer)\
**Post date:** [February 21, 2025, 9:19am UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545/5 "2025-02-21T09:19:37Z")

</div>

We are experiencing this exact issue as well. I’ve reached out to Auth0 support linking to this thread.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 18, 2025, 5:36pm UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545/7 "2025-03-18T17:36:20Z")

</div>

Hi @dave-mogi,

Thanks for your question.

Yes, that is correct that sending an Organization invite to a user will allow them to sign up and log in to your app.

I have just tested the “invite member to organizations” flow and confirmed that a new user gets prompted to set a new password if they do not exist in the data store.

After that, it creates the user accordingly. Please ensure that the user goes to the invitation link to sign up/log in the context of the organization you specified.

Thanks,  
Rueben

---

<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 1, 2025, 5:36pm UTC](https://community.auth0.com/t/organization-invitation-does-not-create-user/146545/8 "2025-04-01T17:36:57Z")

</div>

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