---
title: "List the agency's team"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# List the agency's team

Path: Nicer API › identity

`GET /identity/company/users`

URL: `https://api.nicer.travel/identity/company/users`

Lists the active agency's staff (advisors and admins) with their membership settings, and its pending staff invitations. Agency admins; Nicer staff may name another agency with companyName.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `companyName` (`identity.company.users.list.query.companyName`; string, optional) — The agency to list, by its companyName. Nicer staff may name any agency; anyone else gets only the agency the request acts for.
- `limit` (`identity.company.users.list.query.limit`; string, optional) — How many roster rows, people and invitations together, a page reads: 30 when absent. Removed members are left out after the read, so a page can hold fewer.
- `nextToken` (`identity.company.users.list.query.nextToken`; string, optional) — Where the page starts: the nextToken of the previous page.

## Header parameters

- `x-nicer-company` (`identity.company.users.list.header.x-nicer-company`; string, optional) — Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.identity.company.users.list();
```

### Nicer CLI

```bash
nicer identity company users list
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/identity/company/users \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/company/users';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/identity/company/users"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "hasMore": true,
  "invites": [
    {
      "advisorId": "string",
      "companyName": "string",
      "createdBy": "string",
      "deleted": true,
      "email": "string",
      "expiresAt": "string",
      "familyName": "string",
      "fullName": "string",
      "givenName": "string",
      "invitedBy": "string",
      "lastModifiedBy": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "phoneNumber": "string",
      "resendCount": 0,
      "role": "advisor",
      "sendMessage": true,
      "inviteId": "string",
      "userId": "string",
      "createdAt": "string",
      "type": "Invite",
      "updatedAt": "string"
    }
  ],
  "items": [
    {
      "avatar": "string",
      "biography": "string",
      "calendarUrl": "string",
      "companyName": "string",
      "deleted": true,
      "deletedAt": "string",
      "deletedBy": "string",
      "email": "string",
      "externalIntercomId": "string",
      "familyName": "string",
      "fullName": "string",
      "givenName": "string",
      "instagram": "string",
      "invitedAt": "string",
      "invitedBy": "string",
      "lastModifiedBy": "string",
      "location": {
        "address": "string",
        "city": "string",
        "country": "string",
        "countryCode": "string",
        "latitude": 0,
        "longitude": 0,
        "neighborhood": "string",
        "region": "string",
        "state": "string",
        "zipCode": "string"
      },
      "phoneNumber": "string",
      "registrationSource": "string",
      "role": "advisor",
      "searchKey": "string",
      "tenantOwner": true,
      "tourProgress": {
        "property1": {
          "completedAt": "string",
          "status": "completed"
        },
        "property2": {
          "completedAt": "string",
          "status": "completed"
        }
      },
      "username": "string",
      "zoneinfo": "string",
      "tenantId": "string",
      "userId": "string",
      "createdAt": "string",
      "type": "User",
      "updatedAt": "string",
      "bookingAccessEnabled": true,
      "documents": [
        "string"
      ],
      "hasAdvisorPortalAccess": true,
      "isTestUser": true,
      "noLeads": true,
      "onboardingCompleted": true
    }
  ],
  "nextToken": "string"
}
```

- `hasMore` (`identity.company.users.list.response.200.hasMore`; boolean, required) — Whether another page follows: pass nextToken to read it.
- `invites` (`identity.company.users.list.response.200.invites`; array of object, required) — The staff invitations of this page that were not accepted yet.
  - `companyName` (`identity.company.users.list.response.200.invites.companyName`; string, required) — The agency the invitation is to.
  - `createdBy` (`identity.company.users.list.response.200.invites.createdBy`; string, required) — The user id of whoever sent it, or SYSTEM for a paid Join.
  - `invitedBy` (`identity.company.users.list.response.200.invites.invitedBy`; string, required) — The user id of whoever sent it, or SYSTEM for a paid Join.
  - `lastModifiedBy` (`identity.company.users.list.response.200.invites.lastModifiedBy`; string, required) — The user id of whoever last changed it, or SYSTEM.
  - `role` (`identity.company.users.list.response.200.invites.role`; string, required) — The role the invitee gets on accepting.
    - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`
  - `inviteId` (`identity.company.users.list.response.200.invites.inviteId`; string, required) — The invitation's id.
  - `userId` (`identity.company.users.list.response.200.invites.userId`; string, required) — The user id of whoever sent it; JOIN#<registrationId> for a paid Join.
  - `createdAt` (`identity.company.users.list.response.200.invites.createdAt`; string, required) — When it was sent.
  - `type` (`identity.company.users.list.response.200.invites.type`; string, required)
  - `updatedAt` (`identity.company.users.list.response.200.invites.updatedAt`; string, required) — When it last changed.
  - `advisorId` (`identity.company.users.list.response.200.invites.advisorId`; any of, optional) — The advisor some older invitations name.
    - any of the following: `string`, `null`
  - `deleted` (`identity.company.users.list.response.200.invites.deleted`; boolean, optional) — True once it was cancelled.
  - `email` (`identity.company.users.list.response.200.invites.email`; string, optional) — The email it was sent to.
  - `expiresAt` (`identity.company.users.list.response.200.invites.expiresAt`; string, optional) — When it can no longer be accepted; one without it expires seven days after createdAt.
  - `familyName` (`identity.company.users.list.response.200.invites.familyName`; string, optional) — The invitee's last name.
  - `fullName` (`identity.company.users.list.response.200.invites.fullName`; string, optional) — The invitee's first and last name, joined.
  - `givenName` (`identity.company.users.list.response.200.invites.givenName`; string, optional) — The invitee's first name.
  - `metadata` (`identity.company.users.list.response.200.invites.metadata`; map of string, optional) — Details stored with it, such as joinRegistrationId.
  - `phoneNumber` (`identity.company.users.list.response.200.invites.phoneNumber`; string, optional) — The phone it was sent to.
  - `resendCount` (`identity.company.users.list.response.200.invites.resendCount`; number, optional) — How many times it was sent again; four at most.
  - `sendMessage` (`identity.company.users.list.response.200.invites.sendMessage`; boolean, optional) — Whether the request asked to send it, kept on invitations of a person whose traveler account was opened from a staff invitation.
- `items` (`identity.company.users.list.response.200.items`; array of object, required) — The advisors and admins of this page whose accounts are open, with their settings in the agency.
  - `familyName` (`identity.company.users.list.response.200.items.familyName`; string, required) — The person's last name.
  - `fullName` (`identity.company.users.list.response.200.items.fullName`; any of, required) — givenName and familyName joined; null until the person has both.
    - any of the following: `string`, `null`
  - `givenName` (`identity.company.users.list.response.200.items.givenName`; string, required) — The person's first name.
  - `role` (`identity.company.users.list.response.200.items.role`; string, required) — The person's role in the agency they last switched into.
    - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`
  - `tenantId` (`identity.company.users.list.response.200.items.tenantId`; string, required) — The partition the account is stored in: the userId for every account opened today.
  - `userId` (`identity.company.users.list.response.200.items.userId`; string, required) — The person's id, their sign-in subject.
  - `createdAt` (`identity.company.users.list.response.200.items.createdAt`; string, required) — When the account was opened.
  - `type` (`identity.company.users.list.response.200.items.type`; string, required)
  - `updatedAt` (`identity.company.users.list.response.200.items.updatedAt`; string, required) — When the account last changed.
  - `avatar` (`identity.company.users.list.response.200.items.avatar`; string, optional) — The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.
  - `biography` (`identity.company.users.list.response.200.items.biography`; any of, optional) — What the person writes about themself.
    - any of the following: `string`, `null`
  - `calendarUrl` (`identity.company.users.list.response.200.items.calendarUrl`; any of, optional) — A link where people book time with the person.
    - any of the following: `string`, `null`
  - `companyName` (`identity.company.users.list.response.200.items.companyName`; any of, optional) — The agency the person last switched into; null, empty or absent on some older accounts.
    - any of the following: `string`, `null`
  - `deleted` (`identity.company.users.list.response.200.items.deleted`; boolean, optional) — True once the account is closed.
  - `deletedAt` (`identity.company.users.list.response.200.items.deletedAt`; any of, optional) — When the account was closed.
    - any of the following: `string`, `null`
  - `deletedBy` (`identity.company.users.list.response.200.items.deletedBy`; string, optional) — The user id of whoever closed the account.
  - `email` (`identity.company.users.list.response.200.items.email`; any of, optional) — The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.
    - any of the following: `string`, `null`
  - `externalIntercomId` (`identity.company.users.list.response.200.items.externalIntercomId`; any of, optional) — A support-tool id some older accounts keep.
    - any of the following: `string`, `null`
  - `instagram` (`identity.company.users.list.response.200.items.instagram`; any of, optional) — The person's Instagram handle.
    - any of the following: `string`, `null`
  - `invitedAt` (`identity.company.users.list.response.200.items.invitedAt`; any of, optional) — When the person was invited, on some older accounts.
    - any of the following: `string`, `null`
  - `invitedBy` (`identity.company.users.list.response.200.items.invitedBy`; any of, optional) — The user id of whoever invited or referred the person.
    - any of the following: `string`, `null`
  - `lastModifiedBy` (`identity.company.users.list.response.200.items.lastModifiedBy`; string, optional) — The user id of whoever last changed the account.
  - `location` (`identity.company.users.list.response.200.items.location`; object, optional) — Where the person says they are.
    - `address` (`identity.company.users.list.response.200.items.location.address`; string, optional)
    - `city` (`identity.company.users.list.response.200.items.location.city`; string, optional)
    - `country` (`identity.company.users.list.response.200.items.location.country`; string, optional)
    - `countryCode` (`identity.company.users.list.response.200.items.location.countryCode`; string, optional)
    - `latitude` (`identity.company.users.list.response.200.items.location.latitude`; number, optional)
    - `longitude` (`identity.company.users.list.response.200.items.location.longitude`; number, optional)
    - `neighborhood` (`identity.company.users.list.response.200.items.location.neighborhood`; string, optional)
    - `region` (`identity.company.users.list.response.200.items.location.region`; string, optional)
    - `state` (`identity.company.users.list.response.200.items.location.state`; string, optional)
    - `zipCode` (`identity.company.users.list.response.200.items.location.zipCode`; string, optional)
  - `phoneNumber` (`identity.company.users.list.response.200.items.phoneNumber`; any of, optional) — The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.
    - any of the following: `string`, `null`
  - `registrationSource` (`identity.company.users.list.response.200.items.registrationSource`; string, optional)
  - `searchKey` (`identity.company.users.list.response.200.items.searchKey`; string, optional) — fullName in lowercase, which searches match.
  - `tenantOwner` (`identity.company.users.list.response.200.items.tenantOwner`; boolean, optional) — Set on some older accounts.
  - `tourProgress` (`identity.company.users.list.response.200.items.tourProgress`; map of object, optional) — The in-app product tours the person completed, skipped or dismissed, by tour id.
  - `username` (`identity.company.users.list.response.200.items.username`; string, optional) — The person's handle, made from their name, for referral links.
  - `zoneinfo` (`identity.company.users.list.response.200.items.zoneinfo`; any of, optional) — The person's time zone, an IANA name such as America/Bogota.
    - any of the following: `string`, `null`
  - `bookingAccessEnabled` (`identity.company.users.list.response.200.items.bookingAccessEnabled`; boolean, optional)
  - `documents` (`identity.company.users.list.response.200.items.documents`; array of string, optional)
  - `hasAdvisorPortalAccess` (`identity.company.users.list.response.200.items.hasAdvisorPortalAccess`; boolean, optional)
  - `isTestUser` (`identity.company.users.list.response.200.items.isTestUser`; boolean, optional)
  - `noLeads` (`identity.company.users.list.response.200.items.noLeads`; boolean, optional)
  - `onboardingCompleted` (`identity.company.users.list.response.200.items.onboardingCompleted`; boolean, optional)
- `nextToken` (`identity.company.users.list.response.200.nextToken`; any of, required) — Where the next page starts; null after the last one.
  - any of the following: `string`, `null`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.company.users.list.response.400.errorCode`; string, required)
- `errorMessage` (`identity.company.users.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.company.users.list.response.401.errorCode`; string, required)
- `errorMessage` (`identity.company.users.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`identity.company.users.list.response.403.errorCode`; string, required)
- `errorMessage` (`identity.company.users.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/identity/identity.company.users.list/index.md
