Hi Splunker,
I am currently working with REST API calls for user management in Splunk. While attempting to add additional roles to the default admin account, I accidentally removed the admin role from this account. Unfortunately, I do not have any other user accounts with admin privileges.
At present, I only have a single user account with the "User" role and cannot create a new user with "Admin" privileges.
Could you please advise on how to restore the deleted roles to the existing user account or suggest any alternative solutions?
Thanks @richgalloway and @isoutamo for your time , it worked 🙂🙌
Restore the $SPLUNK_HOME/etc/system/local/authorize.conf file from your most recent backup and restart Splunk.