I assumed the ‘Set User Permissions’ option via the Role Permissions Manager was to enable creation of User Permission documents for the relevant doctype… This however doesn’t seem to have any effect in that regard. So what exactly is this setting for?
If we’re referring to the same checkbox then I think the option is wrongly named and is therefore misleading. It should be renamed to ‘View User Permissions’ instead
Apologies, I was referring to the “Set User Permissions” button at the top of the Role Permissions Manager. The checkbox means that that particular role can update User Permissions for a user for that doctype. Does that not work as expected?
Hmm, yes. I checked. It does not work as expected. In fact, only the system manager can give/delete permissions. User Permission is not accessible to other roles anyway. Thanks for reporting. We will get this fixed.
I have also noticed that trying to achieve this manually by giving a Role the permission to create User Permission documents is actually possible. The problem however is that you can’t limit them to particular Doctypes. So for example, I could give HR Manager role the right to create User Permission but trying to limit him/her to create only for the Employee Doctype doesn’t seem to work
I tried creating a User Permission that limits the HR Manager user to only Employee Doctype in the User Permission document but it doesn’t work. I’ve explained the Issue below: