This article describes how to reset an Ops Center existing user's password.
This method generates a link which contains a token that allows the user to login and reset the password themselves.
For security and privacy reasons there is no way to force or to retrieve a user's password via the command line.
gravity users reset <username> command, it will create a link to Ops Center that contains a password reset token that will allow the user to reset their password. $ gravity users reset alice@example.com Password reset token has been created and is valid for 8h0m0s. Share this URL with the user: https://<host>/web/reset/<token>
Note: Make sure that <host> is accessible to the user. Otherwise they won't be able to reset their password.
The command accepts the following flags:
| Flag | Description |
|---|---|
| --ttl | Time to live (TTL) for the reset token. Examples: "5h", "10m", "1h30m". The default is "8h", maximum is "24h". |
The command below will generate a password reset URL valid for 1 hour:
$ gravity users reset alice@example.com --ttl=1h Password reset token has been created and is valid for 1h0m0s. Share this URL with the user: https://<host>/web/reset/<token>
001115199

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.