Using curl delete user return all users. can the response be limited to status?

New Member

I use LDAP for users. I want to restrict few users temporarily during Splunk degraded mode.

May be creating local account with the name will disable their login. So I created the user using 

curl -k -u  server:/services/authentication/users -d name=user -d password=password -d roles=user

but now I delete that local account using this:

curl -k -u  --request DELETE server:/services/authentication/users/users

The response returns all thousands of users in LDAP. How do I limit the response to just status code?



Labels (2)
0 Karma


Use the f option to specify which field(s) you want returned.  See .

If this reply helps you, Karma would be appreciated.
0 Karma

New Member

Seems like f option dont work on DELETE requests.

0 Karma
Get Updates on the Splunk Community!

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...