> This page is for version v2024-01-31.
> For other versions, use one of these documentation indexes:
> - v2024-05-25 (default): https://docs.monite.com/v-2024-05-25/llms.txt
> - v2024-01-31: https://docs.monite.com/v2024-01-31/llms.txt
> - v2023-09-01: https://docs.monite.com/v2023-09-01/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.monite.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.monite.com/_mcp/server.

# UserRoles component

## Overview

The `UserRoles` component is a comprehensive React component that displays all [user roles](../../../get-started/server-side#create-role) created by an entity and their given permissions.

## Permissions

To access this component, the entity user must have `read` permissions for the `role` object. For more information, see [List of permissions](/v2024-01-31/api/concepts/authentication#permissions).

## Preview

![UserRoles component preview](/_fern-img/c07c29e42e08cb9e746fa35981679dd8600f56a973e086c9c5f1ee358fb49874.webp)

## Usage

Use the `UserRoles` component in your application as shown:

**`React.js`**

```jsx React.js
import { UserRoles } from "@monite/sdk-react";

// This component must be rendered within the MoniteProvider wrapper
const UserRolesPage = () => {
  return <UserRoles />;
};
```