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

> 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 people

Path: Nicer API › identity

`GET /identity/users`

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

Lists people of the agency the request acts for, a page at a time with limit and nextToken; hasMore says whether another page follows. An admin gets the agency's users, each with their membership settings there, and its pending invitations in items; an advisor gets the accounts of the travelers they serve at the agency. For an admin, the where and fields query parameters narrow the rows and the fields each one carries. Advisors and admins only. Errors: 400 ERROR_UNAUTHORIZED for any other caller.

## Authentication

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

## Query parameters

- `fields` (`identity.users.list.query.fields`; string, optional) — For an admin: the attributes each row carries, comma-separated, where a dotted path reaches inside one. type, userId, companyName, invitedBy and tenantId come too where the row has them, and so do a person's settings in the agency whenever they are a member. A person is listed only with a fullName of two or more characters, so fields without fullName list invitations alone.
- `limit` (`identity.users.list.query.limit`; string, optional) — How many rows a page reads: 30 when absent, at most 500 for an advisor. Filters apply after the read, so a page can hold fewer.
- `nextToken` (`identity.users.list.query.nextToken`; string, optional) — Where the page starts: the nextToken of the previous page.
- `orderBy` (`identity.users.list.query.orderBy`; string, optional) — For an admin: ASC, the default, reads the rows in ascending order; any other value in descending order.
- `where` (`identity.users.list.query.where`; string, optional) — For an admin: which rows to keep. A condition is field:operator:value with eq, neq, gt, gte, lt, lte, like, beginsWith, exists, inq or between (inq and between take values joined by |), several of one object joined by commas; and(…;…) and or(…;…) combine them. Example: and(deleted:neq:true;role:eq:advisor).

## 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.users.list();
```

### Nicer CLI

```bash
nicer identity users list
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/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/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.users.list.response.200.hasMore`; boolean, required) — Whether another page follows: pass nextToken to read it.
- `invites` (`identity.users.list.response.200.invites`; array of object, required) — Always empty: an admin's pending invitations come in items.
  - `companyName` (`identity.users.list.response.200.invites.companyName`; string, required) — The agency the invitation is to.
  - `createdBy` (`identity.users.list.response.200.invites.createdBy`; string, required) — The user id of whoever sent it, or SYSTEM for a paid Join.
  - `invitedBy` (`identity.users.list.response.200.invites.invitedBy`; string, required) — The user id of whoever sent it, or SYSTEM for a paid Join.
  - `lastModifiedBy` (`identity.users.list.response.200.invites.lastModifiedBy`; string, required) — The user id of whoever last changed it, or SYSTEM.
  - `role` (`identity.users.list.response.200.invites.role`; string, required) — The role the invitee gets on accepting.
    - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`
  - `inviteId` (`identity.users.list.response.200.invites.inviteId`; string, required) — The invitation's id.
  - `userId` (`identity.users.list.response.200.invites.userId`; string, required) — The user id of whoever sent it; JOIN#<registrationId> for a paid Join.
  - `createdAt` (`identity.users.list.response.200.invites.createdAt`; string, required) — When it was sent.
  - `type` (`identity.users.list.response.200.invites.type`; string, required)
  - `updatedAt` (`identity.users.list.response.200.invites.updatedAt`; string, required) — When it last changed.
  - `advisorId` (`identity.users.list.response.200.invites.advisorId`; any of, optional) — The advisor some older invitations name.
    - any of the following: `string`, `null`
  - `deleted` (`identity.users.list.response.200.invites.deleted`; boolean, optional) — True once it was cancelled.
  - `email` (`identity.users.list.response.200.invites.email`; string, optional) — The email it was sent to.
  - `expiresAt` (`identity.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.users.list.response.200.invites.familyName`; string, optional) — The invitee's last name.
  - `fullName` (`identity.users.list.response.200.invites.fullName`; string, optional) — The invitee's first and last name, joined.
  - `givenName` (`identity.users.list.response.200.invites.givenName`; string, optional) — The invitee's first name.
  - `metadata` (`identity.users.list.response.200.invites.metadata`; map of string, optional) — Details stored with it, such as joinRegistrationId.
  - `phoneNumber` (`identity.users.list.response.200.invites.phoneNumber`; string, optional) — The phone it was sent to.
  - `resendCount` (`identity.users.list.response.200.invites.resendCount`; number, optional) — How many times it was sent again; four at most.
  - `sendMessage` (`identity.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.users.list.response.200.items`; array\<one of\>, required) — For an admin, the agency's people with their settings there and its pending invitations; for an advisor, the accounts of the travelers they serve at the agency. A person whose fullName is shorter than two characters is left out.
  - every option has:
    - `type` (`<option>.type`; string, required)
  - one of the following, each adding:
    - `object` (`identity.users.list.response.200.items.1`)
      - `userId` (`identity.users.list.response.200.items.1.userId`; string, required) — The person's id.
      - `avatar` (`identity.users.list.response.200.items.1.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.users.list.response.200.items.1.biography`; any of, optional) — What the person writes about themself.
        - any of the following: `string`, `null`
      - `calendarUrl` (`identity.users.list.response.200.items.1.calendarUrl`; any of, optional) — A link where people book time with the person.
        - any of the following: `string`, `null`
      - `companyName` (`identity.users.list.response.200.items.1.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.users.list.response.200.items.1.deleted`; boolean, optional) — True once the account is closed.
      - `deletedAt` (`identity.users.list.response.200.items.1.deletedAt`; any of, optional) — When the account was closed.
        - any of the following: `string`, `null`
      - `deletedBy` (`identity.users.list.response.200.items.1.deletedBy`; string, optional) — The user id of whoever closed the account.
      - `email` (`identity.users.list.response.200.items.1.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.users.list.response.200.items.1.externalIntercomId`; any of, optional) — A support-tool id some older accounts keep.
        - any of the following: `string`, `null`
      - `familyName` (`identity.users.list.response.200.items.1.familyName`; string, optional) — The person's last name.
      - `fullName` (`identity.users.list.response.200.items.1.fullName`; any of, optional) — givenName and familyName joined; null until the person has both.
        - any of the following: `string`, `null`
      - `givenName` (`identity.users.list.response.200.items.1.givenName`; string, optional) — The person's first name.
      - `instagram` (`identity.users.list.response.200.items.1.instagram`; any of, optional) — The person's Instagram handle.
        - any of the following: `string`, `null`
      - `invitedAt` (`identity.users.list.response.200.items.1.invitedAt`; any of, optional) — When the person was invited, on some older accounts.
        - any of the following: `string`, `null`
      - `invitedBy` (`identity.users.list.response.200.items.1.invitedBy`; any of, optional) — The user id of whoever invited or referred the person.
        - any of the following: `string`, `null`
      - `lastModifiedBy` (`identity.users.list.response.200.items.1.lastModifiedBy`; string, optional) — The user id of whoever last changed the account.
      - `location` (`identity.users.list.response.200.items.1.location`; object, optional) — Where the person says they are.
        - `address` (`identity.users.list.response.200.items.1.location.address`; string, optional)
        - `city` (`identity.users.list.response.200.items.1.location.city`; string, optional)
        - `country` (`identity.users.list.response.200.items.1.location.country`; string, optional)
        - `countryCode` (`identity.users.list.response.200.items.1.location.countryCode`; string, optional)
        - `latitude` (`identity.users.list.response.200.items.1.location.latitude`; number, optional)
        - `longitude` (`identity.users.list.response.200.items.1.location.longitude`; number, optional)
        - `neighborhood` (`identity.users.list.response.200.items.1.location.neighborhood`; string, optional)
        - `region` (`identity.users.list.response.200.items.1.location.region`; string, optional)
        - `state` (`identity.users.list.response.200.items.1.location.state`; string, optional)
        - `zipCode` (`identity.users.list.response.200.items.1.location.zipCode`; string, optional)
      - `phoneNumber` (`identity.users.list.response.200.items.1.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.users.list.response.200.items.1.registrationSource`; string, optional)
      - `role` (`identity.users.list.response.200.items.1.role`; string, optional) — The person's role in the agency they last switched into.
        - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`
      - `searchKey` (`identity.users.list.response.200.items.1.searchKey`; string, optional) — fullName in lowercase, which searches match.
      - `tenantOwner` (`identity.users.list.response.200.items.1.tenantOwner`; boolean, optional) — Set on some older accounts.
      - `tourProgress` (`identity.users.list.response.200.items.1.tourProgress`; map of object, optional) — The in-app product tours the person completed, skipped or dismissed, by tour id.
      - `username` (`identity.users.list.response.200.items.1.username`; string, optional) — The person's handle, made from their name, for referral links.
      - `zoneinfo` (`identity.users.list.response.200.items.1.zoneinfo`; any of, optional) — The person's time zone, an IANA name such as America/Bogota.
        - any of the following: `string`, `null`
      - `tenantId` (`identity.users.list.response.200.items.1.tenantId`; string, optional) — The partition the account is stored in: the userId for every account opened today.
      - `createdAt` (`identity.users.list.response.200.items.1.createdAt`; string, optional) — When the account was opened.
      - `updatedAt` (`identity.users.list.response.200.items.1.updatedAt`; string, optional) — When the account last changed.
      - `bookingAccessEnabled` (`identity.users.list.response.200.items.1.bookingAccessEnabled`; boolean, optional)
      - `documents` (`identity.users.list.response.200.items.1.documents`; array of string, optional)
      - `hasAdvisorPortalAccess` (`identity.users.list.response.200.items.1.hasAdvisorPortalAccess`; boolean, optional)
      - `isTestUser` (`identity.users.list.response.200.items.1.isTestUser`; boolean, optional)
      - `noLeads` (`identity.users.list.response.200.items.1.noLeads`; boolean, optional)
      - `onboardingCompleted` (`identity.users.list.response.200.items.1.onboardingCompleted`; boolean, optional)
    - `object` (`identity.users.list.response.200.items.2`)
      - `companyName` (`identity.users.list.response.200.items.2.companyName`; string, required) — The agency the invitation is to.
      - `userId` (`identity.users.list.response.200.items.2.userId`; string, required) — The user id of whoever sent it; some older invitations carry a placeholder id here instead.
      - `advisorId` (`identity.users.list.response.200.items.2.advisorId`; any of, optional) — The advisor some older invitations name.
        - any of the following: `string`, `null`
      - `createdBy` (`identity.users.list.response.200.items.2.createdBy`; string, optional) — The user id of whoever sent it, or SYSTEM for a paid Join.
      - `deleted` (`identity.users.list.response.200.items.2.deleted`; boolean, optional) — True once it was cancelled.
      - `email` (`identity.users.list.response.200.items.2.email`; string, optional) — The email it was sent to.
      - `expiresAt` (`identity.users.list.response.200.items.2.expiresAt`; string, optional) — When it can no longer be accepted; one without it expires seven days after createdAt.
      - `familyName` (`identity.users.list.response.200.items.2.familyName`; string, optional) — The invitee's last name.
      - `fullName` (`identity.users.list.response.200.items.2.fullName`; string, optional) — The invitee's first and last name, joined.
      - `givenName` (`identity.users.list.response.200.items.2.givenName`; string, optional) — The invitee's first name.
      - `invitedBy` (`identity.users.list.response.200.items.2.invitedBy`; string, optional) — The user id of whoever sent it, or SYSTEM for a paid Join.
      - `lastModifiedBy` (`identity.users.list.response.200.items.2.lastModifiedBy`; string, optional) — The user id of whoever last changed it, or SYSTEM.
      - `metadata` (`identity.users.list.response.200.items.2.metadata`; map of string, optional) — Details stored with it, such as joinRegistrationId.
      - `phoneNumber` (`identity.users.list.response.200.items.2.phoneNumber`; string, optional) — The phone it was sent to.
      - `resendCount` (`identity.users.list.response.200.items.2.resendCount`; number, optional) — How many times it was sent again; four at most.
      - `role` (`identity.users.list.response.200.items.2.role`; string, optional) — The role the invitee gets on accepting.
        - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`
      - `sendMessage` (`identity.users.list.response.200.items.2.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.
      - `inviteId` (`identity.users.list.response.200.items.2.inviteId`; string, optional) — The invitation's id.
      - `createdAt` (`identity.users.list.response.200.items.2.createdAt`; string, optional) — When it was sent.
      - `updatedAt` (`identity.users.list.response.200.items.2.updatedAt`; string, optional) — When it last changed.
- `nextToken` (`identity.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.users.list.response.400.errorCode`; string, required)
- `errorMessage` (`identity.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.users.list.response.401.errorCode`; string, required)
- `errorMessage` (`identity.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.users.list.response.403.errorCode`; string, required)
- `errorMessage` (`identity.users.list.response.403.errorMessage`; string, required)


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