> For the complete documentation index, see [llms.txt](https://hypercollector2.docs.hypersec.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hypercollector2.docs.hypersec.io/management/accounts.md).

# Accounts

Accounts for the web interface are managed via the command line tool:

```
sudo /opt/collector-core/bin/pycollector
```

### Authorized Accounts

Authorized accounts are those with access to the web interface.

#### Listing Authorized Accounts

To list accounts with authorized access to the web interface, run the following command from a terminal:

```
sudo /opt/collector-core/bin/pycollector user --list-active-users
```

This will list accounts with authorized access to the web interface:

```
Authorized users:
        Email: support@hypersec.io
        Name: Support Account
        MFA: Enabled

        Email: analyst@hypersec.io
        Name: Analyst 1
        MFA: Disabled
```

#### Disabling an Account

To disable an account and prohibit access to the web interface, run the following command from a terminal:

```
sudo /opt/collector-core/bin/pycollector user --disable-user <username>
```

e.g.:

```
sudo /opt/collector-core/bin/pycollector user --disable-user analyst2@hypersec.io
```

The user will no longer have access to the web interface.

### Password Change

To change a user's password, run the following command from a terminal:

```
sudo /opt/collector-core/bin/pycollector user <username> <new password>
```

e.g.:

```
sudo /opt/collector-core/bin/pycollector user support@hypersec.io myNewPa$$word
```

### Pending Accounts

When users register via the web interface, the newly created account is in a pending state. This prevents access to the web interface until the user is approved.

#### Listing Pending Accounts

To list pending accounts, run the following command from a terminal:

```
sudo /opt/collector-core/bin/pycollector user --list-pending-users
```

This will list accounts that are pending authorization to the web interface:

```
Pending users:
        Email: analyst2@hypersec.io
        Name: Analyst 2
```

#### Authorize Pending Account

To authorize a pending account and enable access to the web interface, run the following command from a terminal:

```
sudo /opt/collector-core/bin/pycollector user --enable-user <username>
```

e.g.:

```
sudo /opt/collector-core/bin/pycollector user --enable-user analyst2@hypersec.io
```

The user will now have access to the web interface.
