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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...