I have a requirement that I have a sub-admin who is able to create new users but with only available specific roles, the sub-admin will only see the roles that top level admin wanted him to see.
My problem is related to the following topic
Is there anyway we could achieve that. Otherwise I am thinking to have client script on user doctype that will hide all the uncessary roles from the list.
I also want to hide uncessary modules from allow module section.
The “roles” section break in the user doctype is not showing when I am creating and editing user from sub-admin. I have allowed one role in user permission of sub-admin to allow to the created user. but there is not roles section break from where I could select the role to assign the newly created user.
I have turned on the System Manager role on the sub-admin now I can see the roles section. Let me see which permission on the System Manager allowing it to show.
Now I am stuck, after creating the user only specified modules are showing but all the modules are checked true behind the scene, so now I want all the modules need to be unchecked by default.