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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...