> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/settings/octoxlabs-account-settings.md).

# OctoXLabs Account Settings

Manage your own OctoXLabs account: profile, password, two-factor authentication, API token, notifications and sign-in history.

**Account Settings** is the page for the account you are signed in with. Every user can open it, whatever their role. Use it to update your name, e-mail and password, protect your account with two-factor authentication (2FA), create an API token for scripts, and review your groups, companies and failed sign-in attempts.

Open it from the avatar menu in the top bar > **Account Settings**. The same menu has the **Light**, **System** and **Dark** theme switch and **Sign Out**. An administrator manages other people's accounts under Users.

### Profile and password

The left card holds your profile.

| Field                                   | Notes                                                                                                                            |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **First Name**, **Last Name**           | Required.                                                                                                                        |
| **Username**                            | Read-only. "Username can be changed only by the administrator."                                                                  |
| **E-mail**                              | Required.                                                                                                                        |
| **Password** and **New Password Again** | Optional. Type the new password in **Password** and repeat it in **New Password Again**. Leave both empty to keep your password. |

Click **Save**. A message confirms "Profile updated successfully".

A new password must follow the platform password rules: at least 12 characters with a lowercase letter, an uppercase letter, a digit and a special character. Changing your password keeps you signed in. Directory (LDAP) accounts keep their password in the directory, so changing it here has no effect. Company administrator accounts cannot change their password here; the password fields are disabled.

### Two-factor authentication

The **Two-Factor Authentication** card adds a one-time code from an authenticator app to your sign-in. When 2FA is off, the card recommends turning it on. When it is on, it shows "Two Factor Authentication is active!"

{% stepper %}
{% step %}

#### Start

Click **Enable 2FA**. A dialog shows a QR code.
{% endstep %}

{% step %}

#### Add the account to your authenticator app

Scan the QR code. If you cannot scan it, type the shown code into the app by hand.
{% endstep %}

{% step %}

#### Confirm

Enter the code from the app under **Enter code from authenticator app** and click **Enable**. A message confirms "Two Factor Authentication enabled".
{% endstep %}
{% endstepper %}

To turn it off, click **Disable 2FA** and confirm. If an administrator has turned on **Mandatory 2FA** in Advanced Settings, you must set up 2FA before you can use the platform and you cannot disable it. If you lose your authenticator device, ask an administrator to reset your 2FA on the Users page.

### API token

The **My API Token** card creates a token that scripts and integrations use to sign in to the API instead of a password. It needs the token permissions (`authtoken.view_token`, and `authtoken.add_token` and `authtoken.delete_token` to create and revoke). These permissions are administrator-only. Without them the card says you have no permission.

* Enter **Life Time Days** and click **Generate**. A value of `0` means the token does not expire; any other value expires the token after that many days.
* Copy the token with **Copy** right away. The full token is shown only once. After you leave the page it appears masked and you cannot read it again. If you lose it, generate a new one.
* Each account has one token. Generating a new token replaces the old one, so scripts using the old token stop working.
* Click **Revoke** and confirm to delete your token.

For how to use the token, see the API reference at <https://docs.octoxlabs.com/api-reference>.

{% hint style="warning" %}
Treat the token like a password. Anyone who holds it can act with your permissions until it expires or you revoke it.
{% endhint %}

### Your groups, companies and sign-in history

The right column is read-only:

* **Owned Groups** lists the groups you belong to, or "No owned groups found".
* **Owned Companies** lists the companies you administer, or "No owned companies found". See Companies.
* **Failed Login Attempts** lists the time of each recent failed sign-in against your account, marked **Failed**, or **Blocked** when the attempt came while the account was already deactivated. If nothing is listed you see "No failed login attempts found". Many failures in a short time lock a standard account; see Users.

### Notifications

The bell icon in the top bar opens your notifications, with a **Show reads** switch, **Mark all as read** and **View All Notifications**. The gear icon inside the bell panel opens **Notification Preferences**.

On that page, each notification type (grouped by category such as Action Center, Adapter, Certificate, Discovery, License Inventory, OctoXLabs License, Report and System Information) has an **On-site** check box and, for types that support it, a **Send Email** check box. Changes save as you click and show "Preference updated". E-mail needs a working SMTP configuration.

**View All Notifications** lists everything with a search box and filters for **Category** and **Sub Category**.

### Verify the result

* After saving your profile, reload the page: the new name and e-mail are shown.
* After enabling 2FA, sign out and in again: you are asked for a code.

### Troubleshooting

| Symptom or error message                      | Cause                                                                               | Fix                                                                                |
| --------------------------------------------- | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `Passwords do not match`                      | **Password** and **New Password Again** differ.                                     | Re-enter both.                                                                     |
| `This password must contain at least one ...` | The new password lacks a required character type.                                   | Follow the password rules above.                                                   |
| The password fields are disabled              | You are signed in with a company administrator account (username ending in `(CA)`). | Change the password on the account that was added as company admin. See Companies. |
| **My API Token** shows no permission          | Your account lacks the token permissions.                                           | Ask an administrator.                                                              |
| The token shows asterisks                     | The full token is shown only when generated.                                        | Generate a new token.                                                              |
| You cannot disable 2FA                        | **Mandatory 2FA** is on.                                                            | Ask an administrator to reset it if you need to move to a new device.              |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Users</strong></td><td>How administrators manage accounts and reset 2FA.</td><td></td></tr><tr><td><strong>Advanced Settings</strong></td><td>Password expiry and mandatory 2FA.</td><td></td></tr><tr><td><strong>SMTP</strong></td><td>Enable e-mail notifications.</td><td></td></tr></tbody></table>
