API Stability Long-Term

The removeGroup() GraphQL mutation may be used to removes a group from LogScale. Only usable if roles are not managed externally (e.g., in LDAP).

For more information on user groups, see the Manage Groups documentation page.

Syntax

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

graphql
removeGroup(
      groupId: string!
   ): RemoveGroupMutation!

To be able to provide the groupId, you'll have to get the unique identifier for the group. You can get that with the groupByDisplayName() , if you know the name of the group.

For the return value RemoveGroupMutation, you'll need to specify its only parameter, group (see the Returned Datatypes section below). But then you'll have to specify one of its parameters: id is the main one you'll need since it's key to getting and changing anything else for the group. See the example below for more clarity:

Show:
graphql
mutation {
  removeGroup(
    groupId: "S9fNVnryg8d1Ql7LgewXi1PlnvCIJjij"
  )
  {group {displayName, userCount}}
}
Example Responses
Show:
json
{
  "data": {
    "removeGroup": {
      "group": {
        "displayName": "Gang",
        "userCount": 0
      }
    }
  }
}

Returned Datatypes

The returned datatype RemoveGroupMutation has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: RemoveGroupMutation

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: Oct 3, 2024
groupGroupyes Long-TermThe group associated with the mutation. See Group.