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!

Splunk App for Anomaly Detection End of Life Announcment

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...