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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...