# Get location users

The method allows you to get users of the location.
location User object:
| Attribute | Type | Description |
|  --- | --- | --- |
| id | number | User ID |
| name | string | User name |
| phone | string | User phone |
| email | string | User email |
| information | string | User information |
| is_approved | boolean | Whether the user accepted the invitation to manage the location |
| is_non_deletable | boolean | Whether the user is non-deletable |

Endpoint: GET /company/{location_id}/users
Version: 1.0.0
Security: BearerPartnerUser

## Path parameters:

  - `location_id` (number, required)
    location ID

## Query parameters:

  - `filter[is_approved]` (number)
    Whether the user accepted the invitation to manage the location. 1 - accepted, 0 - not accepted

## Header parameters:

  - `Accept` (string, required)
    e.g. application/vnd.api.v2+json

  - `Content-Type` (string, required)
    application/json

  - `Authorization` (string, required)
    Bearer partner_token, User user_token

## Response 200 fields (application/json):

  - `success` (boolean)
    Response status.

  - `data` (array)
    Response data.

  - `data.id` (number)
    User ID

  - `data.name` (string)
    User name

  - `data.phone` (string)
    User phone

  - `data.email` (string)
    User email

  - `data.information` (string)
    User information

  - `data.is_approved` (boolean)
    Whether the user accepted the invitation to manage the location

  - `data.is_non_deletable` (boolean)
    Whether the user is non-deletable

  - `meta` (object)
    Additional response data.

  - `meta.count` (number)
    Number of users found

## Response 401 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Authentication needed.

## Response 403 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Access denied.

## Response 404 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object | array)
    Additional response data (empty object or empty array)
    Example: {}

