I am using ASP.NET Boilerplate. I have defined a role named Customer and assigned many permissions to this role such as Create company and Delete company.
However, I want to give the user the possibility of controlling the permissions. Specifically I do not want some users with the role Customer to access all permissions assigned to this role. For example, I want the user Tim who has the role Customer to have access to Create company and Delete company but the user John, who also has the role Customer should only have access to Delete company. Can I do that?
I have tried using IPermissionManager to set the permissions for user like this :
await permissionManager.SetForUserAsync(userId: userID, name: "CreateCompany", isGranted: false);
The problem with this approach is the user is still has access to CreateCompany.