Security

Can we create a user with Splunk Rest API access?

seema2502
Explorer

Hi,
can we create user with Splunk Rest APIs access.
Thanks,
Seema

aljohnson_splun
Splunk Employee
Splunk Employee

Yes, you definitely can.

Endpoint Description:

 https://<host>:<mPort>/services/authentication/users

Example:

 curl -k -u admin:changeme https://localhost:8089/services/authentication/users -d name=User1 -d password=changeme -d roles=admin

References:

  1. REST API Manual
  2. This Answer
  3. See line 51 of this gist written in C#.
  4. See this page that has an example in the PHP SDK.
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...