# Restrict SSO access to multiple organisations for users with same email domain

**URL:** <https://community.auth0.com/t/restrict-sso-access-to-multiple-organisations-for-users-with-same-email-domain/122120>\
**Category:** Get Help\
**Tags:** support-center-self, support-center\
**Created:** [December 1, 2023, 10:52am UTC](https://community.auth0.com/t/restrict-sso-access-to-multiple-organisations-for-users-with-same-email-domain/122120 "2023-12-01T10:52:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirantan.banerjee](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chirantan.banerjee](https://community.auth0.com/u/chirantan.banerjee)\
**Post date:** [December 1, 2023, 10:52am UTC](https://community.auth0.com/t/restrict-sso-access-to-multiple-organisations-for-users-with-same-email-domain/122120/1 "2023-12-01T10:52:40Z")

</div>

Need help with enabling SSO for users with same email domain belonging to multiple organizations in Auth0. The users need to be navigated to only one of those organizations and restricted access for other organizations through SSO login. Any help will be much appreciated!

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [December 5, 2023, 2:22pm UTC](https://community.auth0.com/t/restrict-sso-access-to-multiple-organisations-for-users-with-same-email-domain/122120/3 "2023-12-05T14:22:17Z")

</div>

Hi @chirantan.banerjee , welcome to Auth0!

Removing a user from a membership of organization(s) they shouldn’t be part of will prohibit them from accessing the app in these organization(s) context. This doc show how to remove a user from being a member of a specific org - [Remove Members From Organizations](https://auth0.com/docs/manage-users/organizations/configure-organizations/remove-members)

A user can access the app only within the context of organization(s) they are a member of and, during a single login, authenticate only with one organization selected to log in.

The diagram below shows what a user with an email domain matching the enterprise connection will be shown - only organizatons they are a member of.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/5/b5b73da59e555144ef1a7958c0c31836d0f50bd3.jpeg)

I hope this helps and please let me know any questions!

---

<div class="post-metadata">

**Author:** ![chirantan.banerjee](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chirantan.banerjee](https://community.auth0.com/u/chirantan.banerjee)\
**Post date:** [December 6, 2023, 6:19am UTC](https://community.auth0.com/t/restrict-sso-access-to-multiple-organisations-for-users-with-same-email-domain/122120/4 "2023-12-06T06:19:02Z")

</div>

We do not want to remove any user from any org. We are looking for way to authenticate multi-org users for a particular org through SSO.

Let me try to explain the scenario:

- Consider a user with an email domain of **abcxyz**.
- This user is a member of both **org1** and **org2**.
- We aim to allow SSO login for **org1** while requiring password-based authentication for  
**org2**.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [December 7, 2023, 2:45pm UTC](https://community.auth0.com/t/restrict-sso-access-to-multiple-organisations-for-users-with-same-email-domain/122120/5 "2023-12-07T14:45:02Z")

</div>

Hi @chirantan.banerjee ,  
Thanks for this information!

> [@chirantan.banerjee](#):
>
> We aim to allow SSO login for **org1** while requiring password-based authentication for  
> **org2**.

Can you please go to your Auth0 dashboard → Organizations → the specific organization for which you intend to enable database connection and under the Connections tab select the database connection?

I do not know details of your tenant setup, but this way you should be able isolate users (in terms of connection they log in from) between organizations (by enabling different connections for different organizations, like google connection for org1 and database connection for org2.)

[https://auth0.com/docs/manage-users/organizations/configure-organizations/enable-connections](https://auth0.com/docs/manage-users/organizations/configure-organizations/enable-connections)

---

<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:** [December 21, 2023, 2:45pm UTC](https://community.auth0.com/t/restrict-sso-access-to-multiple-organisations-for-users-with-same-email-domain/122120/6 "2023-12-21T14:45:02Z")

</div>

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