How can we merge OAuth and SSO users if their emai...
# ask-a-descoper
a
How can we merge OAuth and SSO users if their emails are the same? In my case, a user signs on with SSO, and they are put into a tenant automatically, but if that tenant does NOT have the
enforceSSO: true
flag, they can then sign on with oauth (using the same email) and be put into the tenant still due to the self-provisioning domain, resulting in duplicate users.
g
SSO users are not to be merged, as those users are federated to the IdP, so you do not want to allow them to login with other methods than SAML.
d
The OAuth user will be converted to be SSO only user upon SSO login under the following conditions: • The login ID or Email of the existing user must be the exact same of the SSO SAML user’s NameID (which translate into the login ID) • Both existing and new users must be associated so a single tenant and the tenant must be the same