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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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 ...