0
SignumHealth created
Prerequisites
- What is your product version? V10.3.0
- What is your product type (Angular or MVC)? Asp.net MVC Core & Jquery
- What is product framework type (.net framework or .net core)? .net Core
If issue related with ABP Framework
- What is ABP Framework version? 6.3.0
Organization Unit Roles Problem: The user roles inherited by organization units together with those roles assigned directly to the users. We would like to leave the user with their roles assigned independently. But when we add a user to an OU (Organization Units) it inherits the roles automatically that assign to OU. However, the following steps led to me to this behavior:
- We add roles to user (Independently): OK
- We add role to organization: OK
- Go to that user and assign Organization Unit that has the same or different role by organization unit.
- **Then when we edit this user. User has assigned all the roles (Independently + Roles assigned to Organization Unit). **
- When we add new role to that user: OK
- But when we try to remove role which inherited by one of organization not allow me to that. So problem is we don’t want organization roles. We just want to assign Organization unit without its roles. Can you please help us, how we can achieve this?
1 Answer(s)
-
1
Hi,
You can override GetRolesAsync method in UserStore and exclude UO roles, see https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.ZeroCore/Authorization/Users/AbpUserStore.cs#L790