Security

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

meamitjain
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?

 

Thanks

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use the f option to specify which field(s) you want returned.  See https://docs.splunk.com/Documentation/Splunk/8.2.5/RESTREF/RESTprolog#Request_and_response_details .

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

meamitjain
New Member

Seems like f option dont work on DELETE requests.

0 Karma
Get Updates on the Splunk Community!

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...