Hurry Up, Ends March 14!
Open Closed

Show/hide permissions setting for Tenant Admin #2117


User avatar
0
LongNP8 created

Hi,

I would like to setup some new Permission in platform, only users at Host level (Host admin, ex) could configure them.
Tenant Admin is not allowed to see those Permissions to configure.

Could you please give us the solution for it ?

Thanks,
Long


1 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    You can define permissions to be available only at the host/tenant or both levels.

    myGroup.AddPermission(
        "BookStore_Author_Create",
        LocalizableString.Create("Permission:BookStore_Author_Create"),
        multiTenancySide: MultiTenancySides.Host //set multi-tenancy side!
    );
    

    For more information 👉 https://docs.abp.io/en/abp/latest/Authorization#multi-tenancy

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08