Security

How to create a user from the command line and require password change upon first login?

bnorthway_splun
Splunk Employee
Splunk Employee

I need to create a user from the command line ("splunk add user") and require that user to change their password when they log in. The parameter for this option is not documented.

0 Karma
1 Solution

bnorthway_splun
Splunk Employee
Splunk Employee

With a little bit of guessing, I discovered that the parameter is "-force-change-pass true"

A complete example is:

./splunk add user alice -password password123 -role user -email alice@acme.com -full-name "Alice" -force-change-pass true

View solution in original post

0 Karma

bnorthway_splun
Splunk Employee
Splunk Employee

With a little bit of guessing, I discovered that the parameter is "-force-change-pass true"

A complete example is:

./splunk add user alice -password password123 -role user -email alice@acme.com -full-name "Alice" -force-change-pass true

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