All Apps and Add-ons

Name parameter for Splunk Add User CLI command

pdash
Path Finder

I am creating an user form CLI
./splunk add user testuser -password passwd123 -role user -email testuser@domain.com -name TESTUSER -auth admin:changeme

But am getting the error for the name parameter:
In handler 'users': Only one "name" parameter can be specified.

If I dont specify name parameter it makes the field NONE in splunk manager> user list
How to resolve this?

Tags (1)

rajuljain199005
New Member

You can also use the parameter name "full-name" to define the name in place of "realname". It also serves the same purpose.

C:\Program Files\Splunk\bin> splunk add user testuser111 -password passwd123 -role user -email testuser@domain.com -full-name TESTRAJUL -auth admin:changeme

Regards,
Rajul

0 Karma

pdash
Path Finder

Got the answer: -realname is the parameter.

koshyk
Super Champion

very useful for automation of users

0 Karma
Get Updates on the Splunk Community!

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

Introducing the 2024 Splunk MVPs!

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