Overview
TheUserRolesTable component is a comprehensive React component that displays all user roles and their permission sets created by an entity.
Permissions
To access this component, the entity user must haveread permissions for the role object. For more information, see List of permissions.
Preview

Usage
Use theUserRolesTable component in your application as shown:
React.js
Props
The following table shows allUserRolesTable component properties, their types, and descriptions:
| Prop | Type | Description |
|---|---|---|
onFilterChanged | function | This callback is triggered when the filtering options are changed. |
onRowClick | function | This callback takes the identifier of the clicked row as a parameter and is triggered when a user role table row is clicked. |
onSortChanged | function | This callback is called when the current sorting order for any column is changed. It returns the newly sorted field and order. |
onSortChanged takes one argument whose value is an object with the following fields:
sort- the field name of the column whose sort order was changed. For example,created_at.order- the new sort order, eitherascordesc