---
title: "Get user by id from a directory"
method: GET
path: "/api/v1/dsync/users/{userId}"
tags: ["Directory Sync"]
---

# Get user by id from a directory

`GET /api/v1/dsync/users/{userId}`

## Path parameters

- `userId` string, required

## Query parameters

- `tenant` string
- `product` string
- `directoryId` string

## Response `200`

Success

- User
  - `id` string — User ID
  - `first_name` string — First name
  - `last_name` string — Last name
  - `email` string — Email address
  - `active` boolean — Indicates whether the user is active or not
  - `raw` object — Raw user attributes from the Identity Provider

---

[API](https://skmtc.net/ory/apis/enterprise-sso-directory-sync.md) · [All operations](https://skmtc.net/ory/apis/enterprise-sso-directory-sync/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ory/enterprise-sso-directory-sync/versions/d92c991ace28/schema)
