3.0 KiB
| title | description | menu | weight | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Update users | Reset user passwords, change user roles, and manage user accounts in Telegraf Controller. |
|
103 |
Owners and administrators can reset passwords and change roles for other users in {{% product-name %}}. These actions help maintain account security and ensure users have the appropriate level of access.
Reset a user's password
When a user forgets their password or needs a credential refresh, you can generate a time-limited reset link for them.
[!Note] You must have the Owner or Administrator role to reset passwords. Only the Owner can reset Administrator passwords.
Generate a password reset link
- Navigate to the user's detail page.
- Click Reset Password.
- Set the link expiration. The default is 24 hours, but you can configure it from 1 to 720 hours.
- Click Generate Link to create the reset link.
- Copy the generated reset link and share it with the user through a secure channel.
Complete a password reset
After receiving a reset link, the user completes the following steps:
- Open the reset link in a browser.
- Enter a new password that meets the complexity requirements.
- Click Submit to save the new password.
[!Note] The user is not automatically logged in after resetting their password. They must log in with their new credentials.
Emergency owner password reset
If the owner account is locked out or the owner has forgotten their password, you can reset it using environment variables.
- Set the following environment variables:
RESET_OWNER_PASSWORD=trueOWNER_PASSWORDto the desired new password
- Restart the {{% product-name %}} application.
- Log in with the new password.
- Remove the
RESET_OWNER_PASSWORDandOWNER_PASSWORDenvironment variables.
[!Warning] Remove
RESET_OWNER_PASSWORDandOWNER_PASSWORDenvironment variables after successfully logging in. Leaving them set causes the password to reset on every application restart.
Change a user's role
You can promote or demote users by changing their assigned role.
[!Note] You must have the Owner or Administrator role to change a user's role. Only the Owner can change a user's role to Administrator.
- Navigate to the user's detail page.
- Select the user's new role.
- Confirm the change when prompted.
The following restrictions apply to role changes:
- You cannot assign the Owner role directly. To make a user the owner, the current owner must transfer ownership.
[!Important]
Side effects of changing a user's role
- The user's API tokens are reclamped to match the new role's permissions. If the new role cannot manage tokens (such as Viewer), all active tokens are revoked.
- The user's active sessions are destroyed. They must log in again to continue using {{% product-name %}}.