Open Closed

ABPPermissionGrants table has custom permission but unable to see these custom permissions in the identity, roles, permission modal pop up #9937


User avatar
0
manas-patnaik_HON created

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)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • 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:

    1. Permission Definition Provider Not Registered
      Ensure your custom permissions are defined in a class that inherits from PermissionDefinitionProvider and that this provider is registered in your module's configuration. The provider should be in the Application.Contracts project of the module.

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

    3. Rebuild and Restart
      After adding new permissions or updating references, rebuild your solution and restart all related services (especially those responsible for permission management).

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

    5. 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:


    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.

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.0.0-preview. Updated on September 23, 2025, 10:47