vpkV
ZITADEL4mo ago
61 replies
vpk

Users from IdP are always assigned to default org instead of correct org based on domain

HI,

I am using an IdP for login, and I have multiple organizations. Can anyone help me assign users to the correct organization based on the email domain (or from the organization’s metadata)?

For example, through the IdP I will have:

jo@abc.com
→ should go to org abc

alice@def.com
→ should go to org def

Currently, both users are being assigned to the default organization.

How can I fix this so that users are automatically assigned to their respective organizations through idp login?

Is there any setting i need to enable or is there anyway i can update organization id through action.
Was this page helpful?