Open Closed

not providing permission to create new user in granted policies still we are able to see new user create button. #1296


User avatar
0
kaustubh.kale@ness.com created

ABP Framework version: v4.2.2 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): no / yes Exception message and stack trace: Steps to reproduce the issue:

We are not providing permission to create new user in granted policies still we are able to see new user create button.

The below permission is false and still we are able to see new user button

AbpIdentity.Users.Create


2 Answer(s)
  • User Avatar
    0
    bunyamin created

    Hello,

    I've tried it with the latest version, and it seems to be working as expected. I've checked the code, it should be the same as v4.2.2

    Here is what I've tried,

    With admin user, I've removed AbpIdentity.Users.Create permission from myself which triggered a request to the backend as follows:

    As you can see from the response, AbpIdentity.Users.Create is not present within grantedPolicies. When I navigated to users page again, New user the button is not being displayed to me.

    Everything in action:

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 17, 2025, 10:38