# Invitation email, but user already exists?

**URL:** <https://community.auth0.com/t/invitation-email-but-user-already-exists/48843>\
**Category:** Get Help\
**Created:** [August 29, 2020, 12:09am UTC](https://community.auth0.com/t/invitation-email-but-user-already-exists/48843 "2020-08-29T00:09:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asdFletcher](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/asdfletcher/32/13741_2.png) [@asdFletcher](https://community.auth0.com/u/asdFletcher)\
**Post date:** [August 29, 2020, 12:09am UTC](https://community.auth0.com/t/invitation-email-but-user-already-exists/48843/1 "2020-08-29T00:09:19Z")

</div>

# Preamble

I am creating an app that has **organizations** , which have **users** , sort of like Github. Where each user can belong to multiple organizations, and thus see the private data stored in that org’s repos.

I want to allow users to invite other users to their organization. It sounds like this is possible by following [this post](https://auth0.com/docs/auth0-email-services/send-email-invitations-for-application-signup), which creates an auth0 account for my auth0 app sends the user essentially a password reset email.

# Question

However, what should I do if the user already exists in that app, as a member of a different organization?

# My first guess

Basically, I am thinking I need a simple **if** statement in my app logic:

- the inviting user types in the new user’s email
- **if** that email **doesn’t exists** in my auth0 app
  - follow the auth0 invite workflow above

- **if** that email **already exists** in my auth0 app
  - send email or notification via some totally separate workflow that doesn’t involve auth0
  - once accepted update my DB records accordingly

Has anyone faced a similar issue?

Any thoughts would be welcome 🙂  
Thanks!

---

<div class="post-metadata">

**Author:** ![dak2009](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dak2009/32/44901_2.png) [@dak2009](https://community.auth0.com/u/dak2009)\
**Post date:** [January 14, 2023, 12:09am UTC](https://community.auth0.com/t/invitation-email-but-user-already-exists/48843/2 "2023-01-14T00:09:05Z")

</div>

Any comment from Auth0? I’m have the same issue.

---

<div class="post-metadata">

**Author:** ![dak2009](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dak2009/32/44901_2.png) [@dak2009](https://community.auth0.com/u/dak2009)\
**Post date:** [February 26, 2023, 8:25pm UTC](https://community.auth0.com/t/invitation-email-but-user-already-exists/48843/4 "2023-02-26T20:25:09Z")

</div>

Check out my solution, [Invite flow error =\> User already exists { one connection, one application, multiple organisations } - #4 by dak2009](https://community.auth0.com/t/invite-flow-error-user-already-exists-one-connection-one-application-multiple-organisations/94365/4)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 27, 2023, 7:53am UTC](https://community.auth0.com/t/invitation-email-but-user-already-exists/48843/5 "2023-02-27T07:53:34Z")

</div>

Teamwork makes the dreamwork!

---

<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:** [March 13, 2023, 7:53am UTC](https://community.auth0.com/t/invitation-email-but-user-already-exists/48843/6 "2023-03-13T07:53:43Z")

</div>

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