Skip to main content

roleCreate

Create a new role in the authorization system.

Establishes a new role with specified permissions and role definitions. The role will be available for assignment to users and can be used for access control throughout the system.

Possible errors:

  • ROLE_CREATE_ERROR: Failed to create the role
  • ROLE_ALREADY_EXISTS_ERROR: Role with the same name already exists

AUTH: Role=[role.OWNER]

roleCreate(
input: RoleCreateInput!
): Role!

Arguments

roleCreate.input ● RoleCreateInput! non-null input

Role creation data including name, permissions, and configuration.

Contains all necessary information to create a functional role including role definitions and access permissions.

Type

Role object