Open Closed

Static Roles #2994


User avatar
0
chris.tune@gmail.com created
  • ABP Framework version: v5.1
  • UI type: Angular / MVC / Blazor
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): Angular Microservices.

Hi I'm looking to simplify the permission and roles for our SaaS build on the commercial framework.

At the moment we seed the roles and permission when we set up a tenant. While this is good for enterprise implementation I want to reduce this down so we can offer a simple UI.

Have a static set of roles and do not allow editing of these roles or role permissions. Is there a way of hiding a role, for example, a Super User who can change all the configurations, BUT not have this visible to other users with a lower role? Removing the seeded admin user when we create a tenant and create one for the user which signed up.

For example I want to create:

  • Super User (access to all features) - HIDDEN to all other users.
  • Administrator (access to admin features)
  • Employee (basic user)

Cheer for the advice. Chris

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

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

    hi

    You can customize related application services or repositories, and exclude some special entities in query results.

    For example, extending the **User **entity to add some properties that represent identity(Super User, Admin, Employee ).

    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 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.