---
metadata:
  - name: generator
    content: Diplodoc Platform v5.19.6
alternate:
  - https://docs.routeq.com/doc/en/delivery/quickstart/manager.md
  - https://docs.routeq.com/doc/tr/delivery/quickstart/manager.md
title: RouteQ — API implementation procedure — granting access
---
> **Documentation Index:** Fetch the complete configuration index at https://docs.routeq.com/doc/en/llms.txt


# Granting access

To enable other users to track the statuses of routes and orders, add them to the interface and configure their permissions.

## Adding a company manager {#add-manager}

Access is provided with [Yandex ID](https://passport.yandex.com).

{% note info %}

Use your work or personal email to log in by creating a Yandex ID here: [https://passport.yandex.com/auth/preregister](https://passport.yandex.com/auth/preregister).

Username and email can contain Latin letters, digits, period, and hyphen.

{% endnote %}


**_In Routing Workspace_**

1. {% include [open-logist-workplace-companies](../_includes/open-logist-workplace-c693389b040b.md) %}
2. In the menu on the left, go to **Settings** → **Managers**.
3. Add users:
   
   {% include [add-user](../_includes/add-user-1285949ce15e.md) %}

**Via the API**

: {% note info %}

  When adding a user with the API, assign them the `manager`, `dispatcher`, or `admin` role.

  {% endnote %}


  Send a request to the [users](https://yandex.ru/routing/doc/en/delivery/redoc/index.html#operation/addsAUser) resource. In the request, specify the user's username and role:

  **Request:**

  {% list tabs %}

  - Windows

    cURL

    ```html
    curl -H "Content-Type: application/json" -H "Authorization: OAuth <your-OAuth-token>" -X POST -d @<File_path_in_UTF-8_encoding> https://courier.yandex.ru/api/v1/companies/<your-company-id>/users
    ```

    File

    ```json
    {"login":"alice.the.girl", "role":"manager"}
    ```

  - MacOS/Linux

    cURL

    ```html
    curl -H "Content-Type: application/json" -H "Authorization: OAuth <your-OAuth-token>" -X POST -d '{"login":"alice.the.girl", "role":"manager"}' https://courier.yandex.ru/api/v1/companies/<your-company-id>/users 
    ```

  {% endlist %}

  **Result**:
  
  ```json
  {
    "id": 197162,
    "login": "alice.the.girl",
    "role": "manager"
  }
  ```

## Configuring permissions {#access}

After adding an employee:

**_In Routing Workspace_**

{% include [access](../_includes/access-40ab5b935e40.md) %}

**Via the API**

: A role is assigned to a user when you add them, and access to depots and companies for a **Manager** and **Dispatcher** is set in the interface.

Once a user has registered and has been added, they will have access to the Routing Workspace interface at [https://yandex.com/courier/](https://yandex.com/courier/).


## Deleting a user {#delete-user}

**_In Routing Workspace_**

1. {% include [open-logist-workplace-companies](../_includes/open-logist-workplace-c693389b040b.md) %}
2. In the menu on the left, go to **Settings** → **Managers**.
3. Open the user card.
4. At the bottom of the page, click **Delete user**.

**Via the API**

: Send a request to the [users](https://yandex.ru/routing/doc/en/delivery/redoc/index.html#operation/deletesUser) resource. In the URI, specify the user ID:

  **Request:**

  cURL

  ```html
  curl -H "Content-Type: application/json" -H "Authorization: OAuth <your-OAuth-token>" -X DELETE https://courier.yandex.ru/api/v1/companies/<your-company-id>/users/<your-company-id>
  ```

  **Result:**
  
  ```json
  {
    "id": 197215,
    "login": "alice.the.girl",
    "role": "manager"
  }
  ```

{% include [warehouse-feedback](../_includes/feedback-7b71896f9bc3.md) %}
