> For the complete documentation index, see [llms.txt](https://documentation.virtuedeep.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.virtuedeep.tech/guides/using-the-portal/managing-users-and-roles.md).

# Managing users and roles

Learn how to create and manage user roles and users using the Portal.

Affective Computing by Virtue can have two kinds of users depending on their functional role:

<table><thead><tr><th width="176">User type</th><th>Description</th></tr></thead><tbody><tr><td>Internal users</td><td><p>Administrative or managerial users who might be responsible for the following tasks, and more:</p><ul><li>Configuring the different project components</li><li>Admin tasks</li><li>Monitoring performance and analyzing the solution's results</li></ul><p>These users wouldn't typically interact with the solution directly as end-users, and can therefore be considered as <em>internal</em> users.</p></td></tr><tr><td>External users</td><td><p>Users who interact directly with the solution as end-users and participate in interactions.</p><p>These users can be considered as <em>external</em> users. The data of external users is completely anonymized.</p><p><strong>Note</strong>: Depending on the solution use case, external users could be the same or a different set of users from internal users.</p></td></tr></tbody></table>

This section describes how to add and manage *internal* users of your solution using the Portal.

## Creating a role

You can create roles to define the permissions you want to grant to different groups of users that enable them to perform different tasks on the platform.

To create a role, do the following:

1. Log in to the Portal.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-7c7f0bd56a38a218060201c3899b30c87a2c406f%2FPortal%20login%20screen.png?alt=media" alt=""><figcaption><p>Logging in to the Portal</p></figcaption></figure>

2. In the left sidebar, go to **Settings → Roles**.
3. In the upper-right corner, click **+ New Role**.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-0f4eb9f6a352bd25789bdec4e55024b76bb40298%2FPortal%20-%20creating%20a%20user%20role.png?alt=media" alt=""><figcaption><p>Creating a role</p></figcaption></figure>

4. Enter the following details:

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-927b4cfdc9c541cc87c4d5e0eb451cc8ceebc50d%2FPortal%20-%20creating%20a%20user%20role%202.png?alt=media" alt=""><figcaption><p>Configuring a role</p></figcaption></figure>

| Field                | Description                                   | How to configure it                                         |
| -------------------- | --------------------------------------------- | ----------------------------------------------------------- |
| **Role Name**        | The name of the user role                     | (Mandatory) Enter a name.                                   |
| **Display Name**     | The name shown for the role in the Portal     | (Mandatory) Enter a name.                                   |
| **Role description** | Description of the user role                  | (Optional) Enter the description                            |
| **Permission**       | The permissions associated with the user role | Select all the permissions that you want to grant the role. |

5. Click **Save**.

## Creating a user

You can create users and assign one or multiple roles to them (depending on their functional role in the solution development process).

To create a user, do the following:

1. Log in to the Portal.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-7c7f0bd56a38a218060201c3899b30c87a2c406f%2FPortal%20login%20screen.png?alt=media" alt=""><figcaption><p>Logging in to the Portal</p></figcaption></figure>

2. In the left sidebar, go to **Settings → User Management**.
3. In the upper-right corner, click **+ New User**.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-110d6518ca5ee463586a2ef3e4f26422661769c5%2FPortal%20-%20creating%20a%20user.png?alt=media" alt=""><figcaption><p>Creating a user</p></figcaption></figure>

4. In the **User details** tab, enter the following details:

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-8c57d64ad8ca83bd8c78587bcec97f2a6f56a9b3%2FPortal%20-%20creating%20a%20user%202.png?alt=media" alt=""><figcaption><p>Configuring user details</p></figcaption></figure>

| Field                | Description                                                 | How to configure it                                  |
| -------------------- | ----------------------------------------------------------- | ---------------------------------------------------- |
| **User name**        | Username of the user                                        | (Mandatory) Enter the username for the user account. |
| **Name**             | First name of the user                                      | (Mandatory) Enter the user's first name.             |
| **Surname**          | Last name of the user                                       | (Mandatory) Enter the user's surname.                |
| **Email address**    | Email address of the user                                   | (Mandatory) Enter the user's email address.          |
| **Password**         | User account password                                       | (Mandatory) Enter a password.                        |
| **Confirm password** | -                                                           | (Mandatory) Re-enter the password.                   |
| **Is active**        | Indicates whether or not the user is active on the platform | To activate the new user, select this checkbox.      |

5. In the **User roles** tab, select the roles that you want to assign to the user.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-18aeb151a365024ef9aaa92be46b477d98151046%2FPortal%20-%20creating%20a%20user%203.png?alt=media" alt=""><figcaption><p>Assigning roles to users</p></figcaption></figure>

6. Click **Save**.
