Security

How do I remove an LDAP user from a search head cluster?

davebo1896
Communicator

I'm getting errors from a user that was removed from LDAP, how do I remove the user from the Search Head Cluster?
Note: splunk remove user does not work

Tags (4)
0 Karma
1 Solution

somesoni2
Revered Legend

If the user is removed from LDAP, then user doesn't exist in Splunk (hence the CLI command remove user won't work). The error that you're seeing is for the Splunk knowledge objects (searches/dashboards/macros etc) owned by that deleted user. To fix the errors, you would need to
1. Delete those objects (if they are no longer needed)
2. Change the ownership to a different person (same team member/replacement)
3. Change the ownership to nobody (you would need to update the scope from private to this app.

Steps on changing owner ship
For objects shared in app/global
https://answers.splunk.com/answers/52605/how-do-i-change-the-owner-of-a-saved-search.html

For Private objects, just move/copy/merge the content to appropriate etc/users/userName folder.

View solution in original post

somesoni2
Revered Legend

If the user is removed from LDAP, then user doesn't exist in Splunk (hence the CLI command remove user won't work). The error that you're seeing is for the Splunk knowledge objects (searches/dashboards/macros etc) owned by that deleted user. To fix the errors, you would need to
1. Delete those objects (if they are no longer needed)
2. Change the ownership to a different person (same team member/replacement)
3. Change the ownership to nobody (you would need to update the scope from private to this app.

Steps on changing owner ship
For objects shared in app/global
https://answers.splunk.com/answers/52605/how-do-i-change-the-owner-of-a-saved-search.html

For Private objects, just move/copy/merge the content to appropriate etc/users/userName folder.

Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...