Open Closed

Create Tenants with a customized Role for admin user #5636


User avatar
0
pvala created
  • ABP Framework version: v7.3.2
  • UI Type: Angular
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

When we create a Tenant, it creates an admin user by default with all the permissions being granted to that Tenant admin user. Is there a way through which I can assign a specific role to that admin user while the creation of the Tenant? Also, I want a way in which only few of the permissions should be visible to that tenant admin user to be modified. For example, I have a form wizard, which is used to setup the new organizations in the application. I want a way in which only the host user should be able to use that form and only the host user should be allowed to see the form permissions and that permission should not be visible to the admin user of any tenant.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You don't have to do this, if a feature is only visible to the host user, you can define a host-only permission.

    See: https://docs.abp.io/en/abp/latest/Authorization#multi-tenancy

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38