For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
API StatusPartner Portal
HomeGuidesAPI ExplorerSDKsGitHubSupport
HomeGuidesAPI ExplorerSDKsGitHubSupport
  • Monite SDK
    • Overview
  • Drop-in
    • Drop-in overview
    • Drop-in theming
    • Drop-in localization
    • Iframe App
  • React SDK
    • Overview
      • Overview
      • ApprovalPolicies
      • ApprovalPoliciesTable
      • ApprovalPolicyDetails
      • ApprovalRequests
      • ApprovalRequestsTable
      • CounterpartDetails
      • Counterparts
      • CounterpartsTable
      • CreditNotesTable
      • DocumentNumber
      • InvoiceDetails
      • InvoicesTable
      • LayoutAndLogo
      • Onboarding
      • OtherSettings
      • PayableDetails
      • Payables
      • PayablesTable
      • ProductDetails
      • Products
      • ProductsTable
      • QuotesTable
      • Receivables
      • ReceivablesTable
      • RolesAndPolicies
      • TagFormModal
      • Tags
      • TagsTable
      • TemplateSettings
      • UserRoleDetails
      • UserRoles
      • UserRolesTable
    • SDK customization
    • SDK localization
    • SDK theming
    • SDK releases
    • v4 migration guide
LogoLogo
API StatusPartner Portal
On this page
  • Overview
  • Permissions
  • Preview
  • Usage
React SDKComponents and wrappers

RolesAndPolicies

Was this page helpful?
Previous

TagFormModal component

Next
Built with

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

User roles tab
Approval policies tab
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};