UserRoleDetails
The UserRoleDetails
component is a comprehensive React component that renders the interface for managing the permission sets of specific user roles.
Permissions
To access this component, the entity user must have
read
permissions for therole
object. To create, edit, and delete the user roles, they must also havecreate
,update
, ordelete
permissions for therole
object. For more information, see List of permissions.
Preview
![`TagsTable` component preview.](https://files.readme.io/710f9f7-Screenshot_2024-06-25_at_10.33.53.png)
UserRoleDetails
component preview.
Usage
Use in the UserRoleDetails
component in your application to view the details of the existing user roles as shown:
import { UserRoleDetails } from "@monite/sdk-react"
// This component must be rendered within the MoniteProvider wrapper
const UserRoleDetailsPage = () => {
return <UserRoleDetails />;
};
Props
The following table shows all UserRoleDetails
component properties, their types, and descriptions:
Prop | Type | Description |
---|---|---|
id | string | This prop accepts the UUID of the user role details to be displayed. |
onCreated | function | This callback is triggered when a new user role is created. |
onUpdated | function | This callback is triggered when a user role information is updated. |
Updated about 1 month ago