Prerequisites What is your product version? -> 12.0
What is your product type (Angular or MVC)? -> Angular
What is product framework type (.net framework or .net core)? -> .net Core
We are currently using OrganizationUnits in our App. However, we now have a need for some users to belong to Multiple organization units. In such situations, We are trying to find out what is currently inbuilt into AspZero to enable users to Switch the current OrganizationUnit they are interacting with when logged in as a normal user in a Tenant.
3 Answer(s)
-
0
Hi @ayoyusuf
If this is a system wide value, you can place an organization unit tree component next to username field on top-right corner and when a OU is selected, you can keep selected value in your session.
You can check https://aspnetboilerplate.com/Pages/Documents/Articles%5CHow-To%5Cadd-custom-session-field-aspnet-core to add a new field to session.
-
0
Hi @ismcagdas
Thanks for the prompt response. This is very clear. Thanks.
However, this sample only shows how to set a value at the initialization of the Session parameter. Kindly advice, how do we update the session value? (I would prefer to use best practice as this might be a sensitive component, so I don't want to just mess around.)
-
0
Hi,
In order to update a claim, you need to follow this https://github.com/aspnetzero/aspnet-zero-core/issues/3667#issuecomment-754460339