API Stability Long-Term

The assignOrganizationRoleToGroup() GraphQL mutation field is used to assign an organization management role to a group for the provided organizations. This is a preview and subject to change.

This is an experimental feature, not ready for production.

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

Syntax

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

graphql
assignOrganizationManagementRoleToGroup(
       input: AssignOrganizationManagementRoleToGroupInput!
    ): AssignOrganizationManagementRoleToGroupMutation!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  assignOrganizationManagementRoleToGroup(input: 
            {groupId: "0dVscp645a6lCbe1WuJxjPbRRF5uBMD5", 
             roleId: "wZ5KEIUY7kRFYDxlQZCHB72VZnFGsmIB",
             organizationIds: ["SINGLE_ORGANIZATION_ID"]} )
       { group { role {displayName, organizationPermissions} } }
}

Given Datatypes

For AssignOrganizationManagementRoleToGroupInput, there are a few parameters. Below is a list of them:

Table: AssignOrganizationManagementRoleToGroupInput

ParameterTypeRequiredDefaultStabilityDescription
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 17, 2024
groupIdstringyes  The unique identifier for the group.
organizationIds[string]yes  The unique identifier for the organization.
roleIdstringyes  The unique identifier for the rpòe.

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, AssignOrganizationManagementRoleToGroupMutation. Below is the parameter of that datatype:

Table: AssignOrganizationManagementRoleToGroupMutation

ParameterTypeRequiredDefaultStabilityDescription
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
textGroupOrganizationManagementRoleyes Long-TermThe organization role to assign to group. See GroupOrganizationManagementRole.