RBAC with SDKs
Descope's Role-Based Access Control (RBAC) system provides a flexible and powerful way to manage user permissions in your applications. You can use these SDK functions to implement RBAC in your application.
Install SDK
Import and initialize Management SDK
Load All Permissions
This function allows administrators to return all details for permissions configured within the Descope instance. The response includes an array of permissions and the details of each permission.
Create a Permission
This function allows administrators to create a new permission.
Update a Permission
This function allows administrators to update an existing permission with the given various fields. It is important to note that parameters are used as overrides to the existing permission; empty fields will override populated fields.
Delete a Permission
This function allows administrators to delete an existing permission. It is important to note that this action is irreversible.
Load All Roles
This function allows administrators to return all details for roles configured within the Descope instance. The response includes an array of roles and the details of each role.
Search for Roles
This function allows administrators to return specific roles configured within the Descope instance using several parameters. The response includes an array of roles and the details of each role.
Create a Role
This function allows administrators to create a new role.
Update a Role
This function allows administrators to update an existing role with the given various fields. It is important to note that parameters are used as overrides to the existing role; empty fields will override populated fields.
Delete a Role
This function allows administrators to delete an existing role. It is important to note that this action is irreversible.