---
title: "Get a member's settings"
---

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

# Get a member's settings

Path: Nicer API › identity

`GET /identity/company/{companyName}/member/{userId}`

URL: `https://api.nicer.travel/identity/company/{companyName}/member/{userId}`

Returns a person's membership in an agency with the onboarding flags the portal reads: role, status, settings, documents, and whether they must still sign the current agreement, with its text. A person reads their own in the agency they act for; an admin or Nicer staff anyone's there.

## Authentication

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

## Path parameters

- `companyName` (`identity.company.member.get.path.companyName`; string, required)
- `userId` (`identity.company.member.get.path.userId`; string, required)

## 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.member.get({
  "companyName": "string",
  "userId": "string"
});
```

### Nicer CLI

```bash
nicer identity company member get --company-name 'string' --user-id 'string'
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/company/<companyName>/member/<userId>';
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/<companyName>/member/<userId>"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "companyName": "string",
  "documents": [
    "string"
  ],
  "bookingAccessEnabled": true,
  "bookingPageEnabled": true,
  "hasAdvisorPortalAccess": true,
  "isTestUser": true,
  "joinedAt": "string",
  "noLeads": true,
  "onboardingCompleted": true,
  "registrationSource": "string",
  "joinRegistrationId": "string",
  "lastModifiedBy": "string",
  "removedAt": "2019-08-24T14:15:22Z",
  "removedBy": "string",
  "role": "advisor",
  "status": "active",
  "userId": "string",
  "type": "CompanyMember",
  "createdAt": "string",
  "updatedAt": "string",
  "shouldSignAgreement": true,
  "shouldUploadDocuments": true,
  "signAgreementContent": "string",
  "signAgreementId": "string"
}
```

- `companyName` (`identity.company.member.get.response.200.companyName`; string, required) — The agency, from the path.
- `userId` (`identity.company.member.get.response.200.userId`; string, required) — The member, from the path.
- `shouldSignAgreement` (`identity.company.member.get.response.200.shouldSignAgreement`; boolean, required) — Whether the person must still sign the agency's current published agreement: true only for an advisor who has not.
- `shouldUploadDocuments` (`identity.company.member.get.response.200.shouldUploadDocuments`; boolean, required) — Whether the membership has no documents on file yet.
- `signAgreementContent` (`identity.company.member.get.response.200.signAgreementContent`; any of, required) — The text of the agency's current published agreement, shown before signing; null when there is none or the person is not an advisor.
  - any of the following: `string`, `null`
- `signAgreementId` (`identity.company.member.get.response.200.signAgreementId`; any of, required) — The id of the agency's current published agreement, signed or not; null when there is none or the person is not an advisor.
  - any of the following: `string`, `null`
- `documents` (`identity.company.member.get.response.200.documents`; array of string, optional)
- `bookingAccessEnabled` (`identity.company.member.get.response.200.bookingAccessEnabled`; boolean, optional)
- `bookingPageEnabled` (`identity.company.member.get.response.200.bookingPageEnabled`; boolean, optional)
- `hasAdvisorPortalAccess` (`identity.company.member.get.response.200.hasAdvisorPortalAccess`; boolean, optional)
- `isTestUser` (`identity.company.member.get.response.200.isTestUser`; boolean, optional)
- `joinedAt` (`identity.company.member.get.response.200.joinedAt`; string, optional)
- `noLeads` (`identity.company.member.get.response.200.noLeads`; boolean, optional)
- `onboardingCompleted` (`identity.company.member.get.response.200.onboardingCompleted`; boolean, optional)
- `registrationSource` (`identity.company.member.get.response.200.registrationSource`; string, optional)
- `joinRegistrationId` (`identity.company.member.get.response.200.joinRegistrationId`; string, optional)
  - pattern: `^[a-f0-9]{64}$`
- `lastModifiedBy` (`identity.company.member.get.response.200.lastModifiedBy`; string, optional) — The user id of the admin or staff member who last changed the membership.
  - minLength: `1`
- `removedAt` (`identity.company.member.get.response.200.removedAt`; string, optional) — When the membership was removed; set with status removed.
  - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
- `removedBy` (`identity.company.member.get.response.200.removedBy`; string, optional) — The user id of the admin or staff member who removed the membership.
  - minLength: `1`
- `role` (`identity.company.member.get.response.200.role`; string, optional)
  - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`
- `status` (`identity.company.member.get.response.200.status`; string, optional)
  - one of `"active"`, `"invited"`, `"removed"`
- `type` (`identity.company.member.get.response.200.type`; string, optional)
- `createdAt` (`identity.company.member.get.response.200.createdAt`; string, optional) — When the membership was created.
- `updatedAt` (`identity.company.member.get.response.200.updatedAt`; string, optional) — When the membership last changed.

### 400

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

#### Example

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

- `errorCode` (`identity.company.member.get.response.400.errorCode`; string, required)
- `errorMessage` (`identity.company.member.get.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

- `errorCode` (`identity.company.member.get.response.401.errorCode`; string, required)
- `errorMessage` (`identity.company.member.get.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`identity.company.member.get.response.403.errorCode`; string, required)
- `errorMessage` (`identity.company.member.get.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/identity/identity.company.member.get/index.md
