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


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 ).

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11