---
title: "Load user roles"
method: GET
path: "/api/v1/roles/users/{userIdOrEmail}"
tags: ["Roles"]
---

# Load user roles

`GET /api/v1/roles/users/{userIdOrEmail}`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/v1/roles/users/{userIdOrEmail}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/v1/roles/users/:userIdOrEmail/get.ts> (a function with typed inputs; its response is checked against the schema)

Loads the user roles

## Path parameters

- `userIdOrEmail` string, required

## Response `200`

User roles retrieved successfully

- ResponseEntityRoleViewListView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` RoleView[]
    - `id` string
    - `name` string
    - `description` string
    - `roleKey` string
    - `parent` string
    - `editPermissions` boolean
    - `editUsers` boolean
    - `editLayouts` boolean
    - `locked` boolean
    - `system` boolean
    - `roleChildren` RoleView[]
    - `childCount` integer, required: Number of direct child roles, independent of children hydration
    - `userCount` integer, required: Number of users directly granted this role, matching the totals of the role users listing: inherited grants and hidden users (system, anonymous, default, flagged for deletion) are not included
    - `dbfqn` string
    - `fqn` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401`: Unauthorized - authentication required
- `403`: Forbidden - backend user required

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v1/roles/users/:userIdOrEmail/get.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
