---
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://jostens.com`
- URL: `https://jostens.com/api/v1/roles/checkuserroles/userid/{userId}/roleids/{roleIds}`
- Auth: none declared

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

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jostens/apis/dotcms-rest-api/revisions/63810c01a4c9?raw)
