---
title: "List External User Mapping"
method: GET
path: "/v2/company/{company_id}/external_user_mappings"
tags: ["External User Mappings"]
---

# List External User Mapping

`GET /v2/company/{company_id}/external_user_mappings`

## Request

- Base URL: `https://api.7shifts.com`
- URL: `https://api.7shifts.com/v2/company/{company_id}/external_user_mappings`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.7shifts.com/oauth2/authorize`
    - Client credentials
    - Password
    - Token URL: `https://app.7shifts.com/oauth2/token`
  - API key in cookie `7session`
- TypeScript: <https://skmtc.dev/7shifts/apis/7shifts-api/docs/v2/company/:company_id/external_user_mappings/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `company_id` integer, required

## Query parameters

- `location_id` integer
- `user_id` integer
- `external_user_id` string
- `modified_since` string: A date with YYYY-MM-DD format
- `cursor` string
- `limit` integer

## Headers

- `x-api-version` string: An API version
- `x-company-guid` string, uuid

## Response `200`

Success

- object
  - `object` 'external_user_mappings', required
  - `data` object[], required
    - `id` integer, required: Mapping ID
    - `user_id` integer, nullable, required: User ID in 7Shifts
    - `external_user_id` string, nullable, required: User ID in External System
    - `company_id` integer, nullable, required: Company ID
    - `location_id` integer, nullable, required: Location ID
    - `application_name` string, required: Name key of the application this mapping is connected with
    - `created` string, date-time, nullable, required: The ISO8601 date and time in UTC when the mapping was created
    - `modified` string, date-time, nullable, required: The ISO8601 date and time in UTC when the mapping was modified
    - `user_active` boolean, required: Boolean indicating whether the mapped 7Shift user is currently active
  - `meta` object, required
    - `cursor` object
      - `current` string, nullable, required: The current cursor.
      - `prev` string, nullable, required: A cursor for navigating to the previous page.
      - `next` string, nullable, required: A cursor for navigating to the next page.
      - `count` integer, nullable, required: The total items in the current cursor.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Unexpected error

---

[API](https://skmtc.dev/7shifts/apis/7shifts-api.md) - [All operations](https://skmtc.dev/7shifts/apis/7shifts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/7shifts/apis/7shifts-api/revisions/40e0ef40dfcd?raw)
