# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hypercollector2.docs.hypersec.io/management/accounts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
