# What is the right way to provide the possibility to login both as an individual and an org member but forbid individual login for org members?

**URL:** <https://community.auth0.com/t/what-is-the-right-way-to-provide-the-possibility-to-login-both-as-an-individual-and-an-org-member-but-forbid-individual-login-for-org-members/193131>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [October 13, 2025, 5:01pm UTC](https://community.auth0.com/t/what-is-the-right-way-to-provide-the-possibility-to-login-both-as-an-individual-and-an-org-member-but-forbid-individual-login-for-org-members/193131 "2025-10-13T17:01:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oleksandr.burla](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oleksandr.burla/32/69438_2.png) [@oleksandr.burla](https://community.auth0.com/u/oleksandr.burla)\
**Post date:** [October 13, 2025, 5:01pm UTC](https://community.auth0.com/t/what-is-the-right-way-to-provide-the-possibility-to-login-both-as-an-individual-and-an-org-member-but-forbid-individual-login-for-org-members/193131/1 "2025-10-13T17:01:09Z")

</div>

Users may only be members of one org in my project and if they are linked to some org they shouldn’t be able to authenticate as non-org users.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [October 13, 2025, 9:17pm UTC](https://community.auth0.com/t/what-is-the-right-way-to-provide-the-possibility-to-login-both-as-an-individual-and-an-org-member-but-forbid-individual-login-for-org-members/193131/3 "2025-10-13T21:17:36Z")

</div>

Hi @oleksandr.burla,

Welcome back to the Auth0 Community!

Even though there isn’t an out-of-box solution for this particular user case, one way that I think you can achieve this is to check programmatically within your code if the user is a member of an organization ( you can use the Management API and [Retrieve User’s Organization Memberships](https://auth0.com/docs/manage-users/organizations/configure-organizations/retrieve-user-membership) ) and if the array returned is not null, then check the **org\_Id** claim of the **IdToken**. If this claim is not populated that means a user who is part of an organization has tried to login using an individual account, so you can log them out and display an error message similar to": “_Please login as a member of an organization_”.

I hope this helps!

Thanks,

Remus

---

<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:** [October 31, 2025, 7:53pm UTC](https://community.auth0.com/t/what-is-the-right-way-to-provide-the-possibility-to-login-both-as-an-individual-and-an-org-member-but-forbid-individual-login-for-org-members/193131/4 "2025-10-31T19:53:19Z")

</div>

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