zato sso reset-user-password


Changes a user’s password to an automatically generated one which is printed to stdout. Use zato sso change-user-password if you would like to control what password will be set for user.

The auto-generated password is 192-bit strong. Data comes from a cryprographic source using Python’s os.urandom.

The password is printed to stdout once only and it is not possible to retrieve it afterwards.

The user must already exist. Optionally, sets a non-default expiry for password or a flag to force the user to change the password on next login.

The absence of –must-change means that its existing value will not be changed - for instance, if the flag is already true in the database and it was not given on input, it will continue to be true.


  • (None)

Command-specific parameters

Name Description Example value
path Path to a Zato server, may be running or not /home/zato/env/server1
username Username of the account to reset the password of user1
–expiry Password expiry in days, if not given and if not overridden in server’s configuration, the default value of 760 days will be used (2 years) 2
–must-change Whether the user must change the password on next login. true

Usage examples

$ zato sso reset-user-password ~/env/qs-ps2/server1/ user1
Password for user `user1` reset to `WKOB1JnrqkNpZKe8OVGuXC6WfgN8Kxv3`


Version Notes
3.0 Added initially