---
title: "GET /user_roles/{userId}"
method: GET
path: "/user_roles/{userId}"
tags: ["User Management"]
---

# GET /user_roles/{userId}

`GET /user_roles/{userId}`

## Request

- Base URL: `https://sort.veritas.com/infoscale/api/2.0`
- URL: `https://sort.veritas.com/infoscale/api/2.0/user_roles/{userId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/veritas/apis/veritas-infoscale-api/docs/user_roles/:userId/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the details of a particular REST user

## Path parameters

- `userId` string, required

## Headers

- `token` string

## Response `200`

Successfully displayed  the user from REST.

- UserDetailResponse
  - `username` string: The name of the user.
  - `role` string: The role of the user.

## Other responses

- `400`: The user name does not exist.
- `401`: Unauthorized

---

[API](https://skmtc.dev/veritas/apis/veritas-infoscale-api.md) - [All operations](https://skmtc.dev/veritas/apis/veritas-infoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veritas/apis/veritas-infoscale-api/revisions/1e3d3f7145bb?raw)
