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<BookStoreResource>("Permission:BookStore_Author_Create"),
        multiTenancySide: MultiTenancySides.Host //set multi-tenancy side!
    );
    

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

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