Restrictiion on Setting User Role


#1

Hi all,

Hopefully someone can point me in the right direction. I’m looking to see if its possible to set a restriction so that a user can only be assigned a specific user role, by someone already within that role. essentially we have two layers of admin, one can add new users to the system and manage their permissions, but there is another admin layer above those with some more functionality in the system. ideally I would like it so that only those who already exist in the higher level admin role can add additional users to that group.

Hopefully that makes some sense. Kind Regards

Karl


#2

Hi Karl, my name is Mark. I’m a Platform Solution Developer here at MatsSoft and I’m here to help you.

So, let me see if I can explain back to you what you are looking to do in order to be sure I have fully understood what you are trying to do.

Let’s say for example you have 3 user roles: User, Manager and Admin.

When either of those User Roles are in the User Add screen, you want them to only be able to create Users with the same role or a junior role?

e.g.

  • User can only create others with the role User. They cannot create Managers or Admins

  • Managers can create other Managers AND other Users but not Admins.

  • Admins can create users of ANY User Role.

Is my understanding correct?

Assuming it is, I assume you want to somehow filter the User Role selector, to only show User Roles that the User in question has the Privileges to create?

Regards - Mark


#3

Hi Mark,

Sorry, I went out for my lunch :slight_smile: boys gotta eat. Your understanding is spot on. that’s exactly what I would like to do

Karl


#4

Hi Karl, I will get back to you tomorrow with a suggestion for you. Cheers - MP