---
title: "Returns the user by their user id"
method: GET
path: "/users/{userId}"
tags: ["users"]
---

# Returns the user by their user id

`GET /users/{userId}`

## Path parameters

- `userId` string, required

## Response `200`

A user profile object

- ModelsUser
  - `_id` string — Profile info
  - `calendarAccounts` object — CalendarAccounts is a mapping from {`email_CALENDARTYPE` => CalendarAccount} that contains all the additional accounts the user wants to see google calendar events for
  - `calendarOptions` ModelsCalendarOptions
    - `bufferTime` ModelsBufferTimeOptions
      - `enabled` boolean
      - `time` integer
    - `workingHours` ModelsWorkingHoursOptions
      - `enabled` boolean
      - `endTime` number
      - `startTime` number
  - `email` string
  - `firstName` string
  - `hasCustomName` boolean — Whether the user has set a custom name for themselves, i.e. don't change their name when they sign in
  - `lastName` string
  - `picture` string
  - `timezoneOffset` integer

## Changes

- **2024-05-15** `0feff3c90ef7` — 1 info
  - endpoint added
- **2022-05-18** `c8572ecc9480` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/schej-it/apis/schej-it-api/changes/users/:userId/get.md)

---

[API](https://skmtc.dev/schej-it/apis/schej-it-api.md) · [All operations](https://skmtc.dev/schej-it/apis/schej-it-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/schej-it/schej-it-api/revisions/02ba513ef807/schema)
