API Stability Long-Term

The removeUsersFromGroup() GraphQL mutation is used to remove users from a group in LogScale.

For more information on user authorization, see the Manage users & permissions documentation page. In particular, read the section on groups, Manage Groups.

Syntax

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

graphql
removeUsersFromGroup(
      input: RemoveUsersFromGroupInput!
   ): RemoveUsersFromGroupMutation!

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

Show:
graphql
mutation {
  removeUsersFromGroup(input: 
         { groupId: "0dVscp645a6lCbe1WuJxjPbRRF5uBMD5",
           users: ["bob", "tom"] } )
    { group {displayName, userCount} }
}
Example Responses
Show:
json
{
  "data": {
    "addUsersToGroup": {
      "group": {
        "displayName": "Maintainers",
        "userCount": 5
      }
    }
  }
}

Given Datatypes

For RemoveUsersFromGroupInput, there a couple of parameters. Below is a list of them along with a description of each:

Table: RemoveUsersFromGroupInput

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 19, 2024
groupIdstringyes Long-TermThe unique identifier of the group from which users should be removed.
users[string]yes Long-TermA list of users to remove from the group.

Returned Datatypes

RemoveUsersFromGroupMutation has one parameter, but several sub-parameters. Click on the link in the table below to see them.

Table: RemoveUsersFromGroupMutation

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 from which to remove users from the mutation. See Group.