Optional
organizationAdminRoleId: stringProtected
Readonly
dataProtected
Readonly
idProtected
loggerProtected
Readonly
loggerOptional
Readonly
organizationReadonly
superadminProtected
applyProtected
applyDelete role
role id
service method context
Protected
generateThis method is responsible for fetching a list of roles that can be assigned to other users by the calling user. Based on the calling user's permissions, this method returns a filtered list of roles that they are authorized to assign.
This ensures that users can only assign roles within their allowed scope, maintaining the integrity and security of the application.
Get roles list
Get role by id or throw an error if role not found
role id
service method context
role if exists, throws an error otherwise
Sync role from external source
Update role
The
RolesService
is a core component of the Roles API, responsible for handling the business logic and operations related to roles and their permissions within an application.It offers a set of methods to create, update, delete, and fetch roles, as well as to manage their associated permissions and permission groups.