How to prevent a role with edit_user account capabilities from deleting admin role?



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.

0 Karma


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.

0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!