---
title: "Retrieve a specific context-hierarchy-user. The agency_id and agency_group_id query parameters are OR together, meaning if a user is linked to the agency or agency_group data will be returned"
method: GET
path: "/context-hierarchy-user/{user_id}"
tags: ["User"]
---

# Retrieve a specific context-hierarchy-user. The agency_id and agency_group_id query parameters are OR together, meaning if a user is linked to the agency or agency_group data will be returned

`GET /context-hierarchy-user/{user_id}`

## Path parameters

- `user_id` string, required

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required
- `X-Accept-Timezone` string

## Response `200`

Specific context hierarchy user will be returned

- object
  - `_id` string, required
  - `first_name` string, required
  - `last_name` string, required
  - `email` string, required
  - `status` string, required
  - `username` string, required
  - `locale` string, required
  - `timezone` string, required
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Validation Error. Usually caused by a missing or invalid parameter
- `401` — Authorization Error. Thrown if the user does not have access to resource.
- `403` — Permission denied error
- `404` — Resource not found
- `default` — unexpected error

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
