Is it possible for Host users to globally manage tenant values e.g. Tenant Roles, Users, Settings etc. ?
Use case is SaaS application where the Host is providing support for the Tenant.
5 Answer(s)
-
0
Hi,
Host users can login as tenant admins and act as tenant admins. So they can change tenant related data.
See <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Core#tenant-user-impersonation">https://aspnetzero.com/Documents/Develo ... ersonation</a>.
Thanks.
-
0
Thanks, understood and that is great functionality.
What about objects that are consistent for all Tenants, such as static roles?
Take the following example: I have 50 tenants and would like to update a static role (Manager) to include a new permission. The new permission needs to be included for all Manager roles in all tenants.
Using impersonation, I would need to impersonate 50 tenant admin users and make the change manually, which is time consuming, and adds some risk of making only the required change.
Note, the scenario doesn't just apply to Roles, but other objects that are tenant agnostic.
Is there another approach that you could recommend to support this type of scenario?
-
0
Hi,
That is not possible by default. You can develop your custom logic on the host side if you like.
Thanks.
-
0
Thanks, thought that must have been the case.
-
0
Hi,
Actually, supporting Db Per Tenant architecture makes this approach hard to implement. Even if you implement this, you need to operate on many different databases if you want to use Db Per Tenant architecture.
Thanks.