---
title: "Check user roles"
method: GET
path: "/api/v1/roles/checkuserroles/userid/{userId}/roleids/{roleIds}"
tags: ["Roles"]
---

# Check user roles

`GET /api/v1/roles/checkuserroles/userid/{userId}/roleids/{roleIds}`

## Request

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

Verifies that a user is assigned to one of the specified role IDs

## Path parameters

- `userId` string, required
- `roleIds` string, required

## Response `200`

Role check completed successfully

- ResponseEntityRoleOperationView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401`: Unauthorized - authentication required
- `403`: Forbidden - insufficient permissions
- `500`: Internal server error

## Changes

- **2026-10-30** `4fd8e917d458`: 6 info
  - api operation id `checkRoles` removed and replaced with `checkUserRoles`
  - api tag `Roles` added
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - …2 more

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v1/roles/checkuserroles/userid/:userId/roleids/:roleIds/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)
