Hello Community,
Yesterday I came across this problem where
- I created a new Role named as “User Management”
- I created a Role Profile named as “User Management” and assigned Some Roles (incl. User Management Role) to this newly created Role Profile
- Now I gave below permissions to “User Management” Role Profile (SS in References). And created a User with this role profile
- Now when I login from a User whose Role Profile is User Management, then I’m not able to select roles under Role Profile Master
What I want?
I have a User who can create, modify or delete [User, Role Profiles, Roles, Role Permissions] everything related to User and Roles, but the User should not be granted the access of other data of ERP.
References:
Permissions
Actual Issue:
Hi @Hemil_Sangani,
Thank you for the reply,
I have given the permission as you mentioned. but still not able to assign roles to role profile
I am able to assign roles in User Profile and also I can create new Roles

Please Look at the Permissions and Level Carefully, I have created Total 6 Role Permission.
And make sure you Clear Cache using bench clear-cache
and then verify.
Yes, That is correct
But are you able to assign roles to Role Profile Master?
for example:
For this, you need to modify the JS file of the Role Profile Doctype, as it is currently configured to allow only Administrators or System Managers to assign roles directly from the Role Profile Master.
1 Like
Thank you for the help @Hemil_Sangani
and yes I see the hard-coded thing there.
I added “User Management” along with “Administrator” & “System Manager”
now it is working as expected.
Thanks Hemil.