When the same use has been aligned in multiple Org...
# ask-a-descoper
b
When the same use has been aligned in multiple Organisations, how do we give them the option to switch the organisation? Similar to how it happens on Clerk/Zitadel/Google and some other providers? Ex reference: https://clerk.com/docs/component-reference/organizationswitcher
s
are you looking for a UI component for this ? Or API call ?
plz remember, that when user belongs to several tenants, all those tenants info (including permissions and roles for each tenant) appear on the the JWT token of the user (which is in the DS cookie or in local storage)
so with that info, you can use that in your app UI, and switch between the tenants (visually in the app )
b
@square-vr-55083 so that means a custom implementation, right? Descope default flows and UI won’t be sufficient in this use case. Am I right?
s
We don't have a flow "out of the box" for changing tenants But that might be easy for us to add, let check that for you In meantime, you can ask for that feature also here: https://github.com/orgs/descope/discussions/categories/ideas @gifted-florist-65280 FYI
👍 1
b
@square-vr-55083 on the note of B2B offerings and multi tenancy, business customers want the auth mailers to go from their own domain instead of our domain (butterpaper.tech). Custom Sendgrid connector only enables us to use default send address. Is there any way we can switch the sending domain (for ex: no-reply@example.com instead of no-reply@butterpaper.tech based on the tenant being used?
s
what about creating several email connectors ?
@brash-pencil-33614 you want to affect only the no-replay domain ? or also send addr for that tenant ?
b
Sender email address. So for tenant A, it could be no-reply@abc.com and for tenant X, it would be no-reply@xyz.com I hope I’m able to clarify the use case.
@square-vr-55083
s
ok, some follow up question are you managing your tenants domains ? in sendgrid ? like https://docs.sendgrid.com/ui/account-and-settings/how-to-set-up-domain-authentication Otherwise, the emails are spoofed no ?
b
yes we do
we have the domain authentication for our tenants
s
I see, I understand better to request now, we don't support it today you can ask for it here too https://github.com/orgs/descope/discussions/categories/ideas To track when it will be on our roadmap/implemented