ABPPermissionGrants table has custom permission created but unable to see these custom permissions in the identity, roles, permission angular modal pop up
1 Answer(s)
-
0
When you define custom permissions in ABP, they must be properly registered and exposed to the permission management system for them to appear in the Identity > Roles > Permissions modal (in Angular or any UI).
If your custom permissions are present in the AbpPermissionGrants table but not visible in the UI, the most common causes are:
Permission Definition Provider Not Registered
Ensure your custom permissions are defined in a class that inherits fromPermissionDefinitionProvider
and that this provider is registered in your module's configuration. The provider should be in the Application.Contracts project of the module.Application.Contracts Reference Missing
For modular or microservice solutions, the Application.Contracts project containing your permission definitions must be referenced by the service responsible for permission management (typically the IdentityService or AdministrationService). If this reference is missing, the permissions will not be loaded into the UI.Rebuild and Restart
After adding new permissions or updating references, rebuild your solution and restart all related services (especially those responsible for permission management).Cache Issues
ABP caches permission definitions. Clear your distributed cache (e.g., Redis) after making changes to permissions to ensure the UI reflects the latest definitions.Database Migration
Make sure all migrations are applied and the database is up to date.
Checklist to resolve:
- Verify your
PermissionDefinitionProvider
is implemented and registered. - Ensure the Application.Contracts project is referenced by the permission management service.
- Rebuild and restart all services.
- Clear the distributed cache.
- Confirm all migrations are applied.
References:
- ABP Permission Management Module
- Blazor UI: Customization / Overriding Components
- Community Article: MudBlazor Theme in ABP Blazor WebAssembly
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.