Overview

The RolesAndPolicies component is a comprehensive React component that gather both user roles and approval policies of an entity and their given permissions.

Permissions

To access this component, the entity user must have read permissions for the role and approval_policy objects. For more information, see List of permissions.

Preview

RolesAndPolicies component in the User roles view
RolesAndPolicies component in the User roles view

Usage

Use the RolesAndPolicies component in your application as shown:

React.js
1import { RolesAndPolicies } from "@monite/sdk-react";
2
3// This component must be rendered within the MoniteProvider wrapper
4const RolesAndPoliciessPage = () => {
5 return <RolesAndPolicies />;
6};