The name of the role to add permissions to.
The permissions to add.
A promise that resolves when the permissions are added.
Retrieve the user IDs assigned to a role.
The name of the role to retrieve the assigned user IDs for.
The user IDs assigned to the role.
@deprecated: Use userAssignments instead.
Retrieve a role by its name.
Create a new role.
The name of the new role.
Optionalpermissions: PermissionsInput
The permissions to assign to the new role.
The newly created role.
Delete a role by its name.
The name of the role to delete.
A promise that resolves when the role is deleted.
Check if a role exists.
The name of the role to check for.
A promise that resolves to true if the role exists, or false if it does not.
Get the IDs and group type of groups that assigned this role.
The name of the role to check.
A promise that resolves to an array of group names assigned to this role.
Check if a role has the specified permissions.
The name of the role to check.
The permission or permissions to check for.
A promise that resolves to true if the role has the permissions, or false if it does not.
Retrieve all the roles in the system.
Remove permissions from a role.
The name of the role to remove permissions from.
The permissions to remove.
A promise that resolves when the permissions are removed.
Retrieve the user IDs assigned to a role. Each user has a qualifying user type,
e.g. 'db_user' | 'db_env_user' | 'oidc'.
Note, unlike assignedUserIds, this method may return multiple entries for the same username,
if OIDC authentication is enabled: once with 'db_*' and once with 'oidc' user type.
The name of the role to retrieve the assigned user IDs for.
User IDs and user types assigned to the role.
Add permissions to a role.