The RolesAndPolicies component is a comprehensive React component that gather both user roles and approval policies of an entity and their given 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.

Use the RolesAndPolicies component in your application as shown: