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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...