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 Managing Users & Permissions documentation page. You may also want to look at the Managing 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

ParameterTypeRequired[a]DefaultDescription
groupGroupyes The group on which to add mutation (see Group Table).

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.