In role management, it's possible to set what roles a user with a certain role can assign to other users.
1. From the system administration side, navigate to role management:
→ "Settings"
→ "Roles"
→ "Role Management"Select from the list the role for which the permission to assign roles to others is desired to be given or restricted.
2. In the role permissions management table, find the row for "role management" and set "limited" as the permission in the "edit" column.
After this, a tab "Grantable roles" will appear for that specific role.
3. Go to the "Grantable roles" tab and click "yes" for those roles that the specified role is allowed to assign to other users in the system.