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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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