The createRole() GraphQL mutation may be used to add a role. This is usable only if roles are not managed externally (e.g., in LDAP).

For more information on roles in LogScale, see the Manage users & permissions documentation page. You may also want to look at the Manage users & permissions page for related information.

Syntax

Below is the syntax for the createRole() mutation field:

graphql
createRole(
      input: AddRoleInput!
   ): AddRoleMutation!

Returned Datatypes

The returned datatype AddRoleMutation has its own parameter:

Table: AddRoleMutation

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
roleGroupyes The role on which to add. See Group.