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!

.conf24 | Registration Open!

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

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...