> For the complete documentation index, see [llms.txt](https://legacydocs.nexudus.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacydocs.nexudus.com/platform/settings/security/adding-and-assigning-a-role.md). Agents can also search and read this documentation through its [MCP server](https://legacydocs.nexudus.com/platform/~gitbook/mcp).

# Adding and assigning a role

Adding and assigning roles to users

Use these procedures to add and assign a new role to a user, assign an existing role to a user, or clone a role.

{% hint style="warning" %}
**Caution:** If you make changes to an existing role, you will change the permissions of all users to whom the role is assigned.
{% endhint %}

### To add and assign a role

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&amp;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](< https://platform.nexudus.com/settings>).
3. Scroll down to Users and Security, then click [**Users and security**](https://platform.nexudus.com/settings/userssecurity).
4. On the **Users and security** page, click **Security**.\
   &#x20;<img src="broken://files/-L_I75kEma_7MfnOpKyG" alt="" data-size="original">&#x20;
5. In the **User roles** section, click **Add user role**. This page is displayed:\
   &#x20;<img src="broken://files/-L_Hra_P8UuoqM1MpQBQ" alt="" data-size="original">&#x20;
6. In the **Name** box, type the name of the new role.
7. If you operate more than one coworking space, in the **Location** box, select the space to which this role applies.
8. **Optional:** In the **Users** drop-down box, select any users you want to assign the new role to.&#x20;
9. In the **Permissions** section, select the permissions for each function you wish to add to the role.
10. At the end of the page, click **Save**. The new role will appear in the list of user roles on the **Security** page.

![Creating a new user role](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LiTnoS01UYCLeuIgOct%2F-LiTy9k8Zh7nA0mczFfF%2Fuser_role.png?alt=media\&token=c8339ba0-3f7e-4abd-8b50-57dc42e51196)

### To assign a role to a user

![Assigning a user role](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LiTnoS01UYCLeuIgOct%2F-LiTybYhaGP-9nYnp-BO%2Fassign_user_role.png?alt=media\&token=ec1d36e3-f07f-4f3d-8432-b5674f090183)

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LiJ7N1TvuMl2QFvelAA%2F-LiJ7Pyn07vHhu6C77mv%2Fhamburguer.svg?alt=media&amp;token=531d622a-6d1f-4301-bd15-e6ad7795aec4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](< https://platform.nexudus.com/settings>).
3. Scroll down to Users and Security, then click [**Users and security**](https://platform.nexudus.com/settings/userssecurity).
4. On the **Users and security** page, click **Security**.
5. In the **User roles** section, click the role that you to assign. The role page is displayed.
6. In the **Users** drop-down box, select the users you want to assign the role to.&#x20;
7. At the end of the page, click **Save changes**.

{% hint style="info" %}
To remove a role from a user, click **x** at the end of the user's name.<br>

![](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LhLd51tDALyR1mMihpl%2F-LhLdZR1jnd_sSgRBYQb%2Fuser_permission_remove.png?alt=media\&token=8f53a13d-0d3f-46bf-adea-7619749bae6c)
{% endhint %}

### To clone a role

When you want to create a new role which is similar to an existing role, using the following procedure will save you a lot of repetitive work.

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LiJ7N1TvuMl2QFvelAA%2F-LiJ7Pyn07vHhu6C77mv%2Fhamburguer.svg?alt=media&amp;token=531d622a-6d1f-4301-bd15-e6ad7795aec4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](< https://platform.nexudus.com/settings>).
3. Scroll down to Users and Security, then click [**Users and security**](https://platform.nexudus.com/settings/userssecurity).
4. On the **Users and security** page, click **Security**.
5. In the **User roles** section, do one of the following:

   * Move your pointer to the left of the user role you want to clone and select the check-box that is displayed.
   * At the end of the invoice you want to refund, click <img src="broken://files/-LZoDZ2DSzmI8XzHUHtt" alt="" data-size="line">.

   A pop-out menu is displayed.
6. Click **Clone rule**. A **Please confirm this action** message is displayed.
7. Click **Continue**. A copy of the user role is added to the list.
8. Open the user role and rename it.
9. In the **Permissions** section, edit the permissions as required.
10. Click **Save changes**.

![Cloning a user role](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LiTnoS01UYCLeuIgOct%2F-LiTyjjaSFGzYKI2v4PR%2Fcloning_user_role.png?alt=media\&token=852fb301-c250-4dc5-8abf-b313197386b7)
