I need to allow some specific accounts to manage users. I created a "subadmin" role with edit_user capability.
My users with subadmin role can now add and edit user accounts and a good thing is that they can only assign the roles they are members of ( subadmin, user and guest ).
But unfortunately they can also delete users with higher privileges: my subadmin user can also delete my superadmin user.
Is there any way to prevent this ? I'm using splunk authentification method.
Splunk's user management is pretty limited. You are much better off using ldap to groups and tie those groups to roles with the desired privileges assigned. Then let folks manage their users via more traditional means such as Active Directory group membership in those mapped groups. Not touching Splunk themselves.