> For the complete documentation index, see [llms.txt](https://docs.prozora.network/bank-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prozora.network/bank-integration/eng/api-methods/emlpoyee/how-to-add-a-user-to-a-role.md).

# How to add a user to a role

To add a user to a role you can go through that diagram. In this diagram you can see the endpoints that are described in the previous sections.

<figure><img src="https://3204608041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtSAbV2p2auxzoLyMptKl%2Fuploads%2F1pp6Evvtqc17bTeaGXOo%2F2%20int%20guide_%20role%20man.png?alt=media&amp;token=7a2f665b-05fe-4e24-b780-f132df85f232" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="68.33333333333331">№</th><th width="251">Endpoint</th><th width="182">Parameters</th><th>Responce/result</th></tr></thead><tbody><tr><td>1</td><td><a data-mention href="/bank-integration/eng/api-methods/emlpoyee/role-management.md#get-roles-with-permissions-for-the-table">Role management</a></td><td>no parameters</td><td>a list of available roles with appropriate permissions, where you should choose a suitable role, if you need another role go to <strong>step 5</strong></td></tr><tr><td>2</td><td><a data-mention href="/bank-integration/eng/api-methods/emlpoyee.md#list-the-of-employees-per-counterparty">Emlpoyee</a></td><td>no parameters</td><td>a list of employees, you should copy <strong><code>{guid}</code></strong> of the employee that you want to add to role, if you need another employee go to <strong>step 4</strong></td></tr><tr><td>3</td><td><a data-mention href="/bank-integration/eng/api-methods/emlpoyee/role-management.md#add-user-to-role">Role management</a></td><td><ul><li><strong><code>{role_name}</code></strong> from step 1</li><li><strong><code>{user_guid}</code></strong> from step 2</li></ul></td><td>a user is added to role</td></tr><tr><td>4</td><td><a data-mention href="/bank-integration/eng/api-methods/emlpoyee.md#create-employee">Emlpoyee</a></td><td>see description in<a data-mention href="/bank-integration/eng/api-methods/emlpoyee.md#create-employee">Emlpoyee</a>, <strong><code>{role_name}</code></strong> from step 1</td><td>a new employee with role is created</td></tr><tr><td>5</td><td><a data-mention href="/bank-integration/eng/api-methods/emlpoyee/role-management.md#create-role">Role management</a></td><td>see description in <a data-mention href="/bank-integration/eng/api-methods/emlpoyee/role-management.md#create-role">Role management</a></td><td>a new role is created</td></tr><tr><td>6</td><td><a data-mention href="/bank-integration/eng/api-methods/emlpoyee/role-management.md#get-all-available-permission-titles">Role management</a></td><td>no parameters</td><td>a list of availible permissions, you should find  permission that you need with <code>"keto_kind": "endpoint"</code>, copy <strong><code>{guid}</code></strong> of that permission. </td></tr><tr><td>7</td><td><a data-mention href="/bank-integration/eng/api-methods/emlpoyee/role-management.md#add-permission-to-role">Role management</a></td><td><ul><li><strong><code>{permission_guid}</code></strong> from step 6</li><li><strong><code>{role_name}</code></strong> from step 1</li></ul></td><td>a new permission added to role</td></tr></tbody></table>
