---
title: "Get User details"
method: GET
path: "/auth/api/v1/user/{userId}"
tags: ["users"]
---

# Get User details

`GET /auth/api/v1/user/{userId}`

## Request

- Base URL: `https://api.opengovernance.io`
- URL: `https://api.opengovernance.io/auth/api/v1/user/{userId}`
- Auth: API key in header `Authorization`

Returns user details by specified user id.

## Path parameters

- `userId` string, required

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgAuthApiGetUserResponse
  - `blocked` boolean: Is the user blocked or not
  - `createdAt` string: Creation timestamp in UTC
  - `email` string: Email address of the user
  - `email_verified` boolean: Is email verified or not
  - `id` integer: Unique identifier for the user
  - `last_activity` string: Last activity timestamp in UTC
  - `role_name` 'admin' | 'editor' | 'viewer'
  - `username` string: Username

---

[API](https://skmtc.dev/opengovern/apis/opengovernance-service-api.md) - [All operations](https://skmtc.dev/opengovern/apis/opengovernance-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/opengovern/apis/opengovernance-service-api/revisions/ab05295c4094?raw)
