> 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](/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 />;
};
```