Open Closed

Create a Permission that is not visible in permission Management #7550


User avatar
0
Spospisil created
  • ABP Framework version: v7.3.3
  • UI Type: Blazor WASM
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Is it possible to create a tenant permission that is not visible in the permission management ui? I want to create a permission for a specific tenant facing page, but don't want the tenant to ever be able to see/change the value of that permission.

Thanks.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

4 Answer(s)
  • User Avatar
    0
    Spospisil created

    Hi,

    For example it would be helpful to have a 'IsVisibleToClients' property on the PermissionDefinition object (such as the case with Features) that allows the creation/use of a permission without showing it in the Permission Management UI.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    For example it would be helpful to have a 'IsVisibleToClients' property on the PermissionDefinition object (such as the case with Features) that allows the creation/use of a permission without showing it in the Permission Management UI.

    you can use WithProperty

    myGroup.AddPermission(
        "BookStore_Author_Create",
        LocalizableString.Create<BookStoreResource>("Permission:BookStore_Author_Create")
    ).WithProperty("IsVisibleToClients", ...);
    

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Spospisil created

    Hi,

    And defining the permission in this way will prevent it from showing as an option in the permission management UI?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    You need to custom the permission management UI https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.