Replies: 1 comment 1 reply
-
|
Hi, in your case I don't know if Then you can simply use a session variable to mark the "current" tenant for the user and give them a menu to switch between them. What do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All.
Bit of background, we have a couple of users spanning Tenants. They can access data across a couple of tenants, but not all same time.
So, what we are trying to achieve:
Single User in Identity, set up and linked to a Tenant, with specific roles(UserRoles) and Permissions(RoleClaims) .
Now, the user can have the option to "switch" tenant, updating the User table with the new Tenants, and refresh token to apply the relevant claims referreing to the the "new" tenant.
So, in stead of Duplicating User in UserTable, we would like to have the abitity to update TenantId in Identity Table. I tried, but Getting the TenantMismatch , as context is tenant aware, and the user does not currently belong to tenant i want to update. How would you suggest in handling this approach. Setting Up a TenantUser entity, where user is linked, Use the UserRole entity to see which tenant user is linked to?
And how do i override the TenantId already set on an Entity in order to Update the User Table?
Might seems simple, but not really. Any advice would be appreciated.
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions