---
title: "Fetch a user"
method: GET
path: "/{domain}/Users/{id}"
tags: ["SCIM"]
---

# Fetch a user

`GET /{domain}/Users/{id}`

## Request

- Base URL: `https://api.teamohana.us` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teamohana.us/{domain}/Users/{id}`
- Auth: HTTP bearer

Given an id return all the fields stored by TeamOhana. As per SCIM specification passwords will not be returned.

## Path parameters

- `id` string, required
- `domain` string, required

## Response `200`

- object
  - `entitlements` object[]
    - `value` string, nullable, required
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `$ref` string, nullable
  - `profileUrl` string, nullable
  - `schemas` unknown, required
  - `nickname` string, nullable
  - `preferredLanguage` string, nullable
  - `ims` object[]
    - `value` string, nullable, required
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `$ref` string, nullable
  - `timezone` string, nullable
  - `displayName` string, nullable
  - `id` string, required
  - `userType` string, nullable
  - `name` object
    - `formatted` string, nullable
    - `familyName` string, nullable
    - `givenName` string, nullable
    - `middleName` string, nullable
    - `honorificPrefix` string, nullable
    - `honorificSuffix` string, nullable
  - `locale` string, nullable
  - `urn:ietf:params:scim:schemas:extension:enterprise:2.0:User` object
  - `userName` string, required
  - `addresses` object[]
    - `primary` boolean
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `formatted` string, nullable
    - `streetAddress` string, nullable
    - `locality` string, nullable
    - `region` string, nullable
    - `postalCode` string, nullable
    - `country` string, nullable
  - `title` string, nullable
  - `meta` object, required
    - `resourceType` 'user', required
    - `created` string, date-time, required
    - `lastModified` string, date-time, required
    - `location` string, required
    - `version` string, uuid, required
  - `password` string, nullable
  - `photos` object[]
    - `value` string, nullable, required
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `$ref` string, nullable
  - `x509Certificates` object[]
    - `value` string, nullable, required
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `$ref` string, nullable
  - `emails` object[]
    - `value` string, nullable, required
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `$ref` string, nullable
  - `active` boolean
  - `phoneNumbers` object[]
    - `value` string, nullable, required
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `$ref` string, nullable
  - `roles` object[]
    - `value` string, nullable
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other' | 'teamohana', nullable
    - `$ref` string, nullable
  - `groups` object[]
    - `value` string, nullable, required
    - `primary` boolean
    - `display` string, nullable
    - `type` '' | 'home' | 'work' | 'other', nullable
    - `$ref` string, nullable
  - `externalId` string

## Other responses

- `400`: Request does not conform to the SCIM standard. Check for typos or missing fields.
- `404`: No such resource found. Please check the id or filters again.
- `500`: Something went wrong at TeamOhana. Please contact support.

---

[API](https://skmtc.dev/teamohana/apis/teamohana-public-api.md) - [All operations](https://skmtc.dev/teamohana/apis/teamohana-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teamohana/apis/teamohana-public-api/revisions/87f9835cbb94?raw)
