---
title: "Get a list of users that are linked(with a status of enabled) to any of the agencies for the given agency group"
method: GET
path: "/agency-group/{agency_group_id}/agency-user"
tags: ["Agency User"]
---

# Get a list of users that are linked(with a status of enabled) to any of the agencies for the given agency group

`GET /agency-group/{agency_group_id}/agency-user`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency-group/{agency_group_id}/agency-user`
- Auth: HTTP basic and HTTP basic

## Query parameters

- `page` integer
- `items_per_page` integer
- `active_agency_users` boolean
- `sortBy` string[]

## Headers

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

## Response `200`

List of agency group agency users

- object[]
  - `_id` string, required
  - `first_name` string, required
  - `last_name` string, required
  - `full_name` string, required
  - `user_status` string, required
  - `estimated_inactive_at` string, date-time
  - `agencies` object[]
    - `agency_id` string, required
    - `status` string, required
    - `estimated_added_at` string, date-time

## Other responses

- `204`: No entities found that match the query
- `400`: Validation error response when listing context(agency/agency-group) users
- `401`: Authorization Error. Thrown if the user does not have access to resource.
- `403`: Permission denied error
- `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.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
