---
updatedAt: 2026-05-27T00:16:47.000Z
agentTools:
  projectIndex: https://360learning.readme.io/llms.txt
---

# Remove users from groups

> 🔑
>
> Required OAuth scope: `groups:bulk`.

> 🚜
>
> This endpoint processes up to 20,000 objects asynchronously. For more information, see the [Bulk operations guide](doc:bulk-operations-1).

Removes multiple users from groups with their assigned roles. The `learner` role is also removed from all public subgroups down to first private excluded. Upon submission, the request is queued. Use the provided URL in the response header to check the status of the bulk operation.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/api/v2/bulk/groups/memberships": {
      "delete": {
        "description": "> 🔑\n>\n> Required OAuth scope: `groups:bulk`.\n\n> 🚜\n>\n> This endpoint processes up to 20,000 objects asynchronously. For more information, see the [Bulk operations guide](doc:bulk-operations-1).\n\nRemoves multiple users from groups with their assigned roles. The `learner` role is also removed from all public subgroups down to first private excluded. Upon submission, the request is queued. Use the provided URL in the response header to check the status of the bulk operation.",
        "operationId": "v2.bulk.groups.RemoveUsersFromGroupsController_removeUsersFromGroups",
        "parameters": [
          {
            "name": "360-api-version",
            "in": "header",
            "description": "The version of the API.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v2.0"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveUsersFromGroupsBody"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The operation is successfully created.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "The URL to retrieve the status of the bulk operation using its operation ID.\n\nExample: `https://app.360learning.com/api/v2/bulk/operations/507f1f77bcf86cd799439011`.",
                "example": "https://app.360learning.com/api/v2/bulk/operations/507f1f77bcf86cd799439011"
              }
            }
          },
          "400": {
            "description": "The server cannot or will not process the request due to something that is perceived to be a client error.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "description": "The input of a bulk operation must be an array.",
                      "title": "Invalid Input",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "invalidInput"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The input array size exceeds the maximum limit of 20,000 objects.",
                      "title": "Input Too Long",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "inputTooLong"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The given access token is either missing, invalid, has expired, or has been revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The given access token does not have the required OAuth scope to execute the request.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Invalid Scope",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "invalid_scope"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "The maximum number of concurrent operations has been reached.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bulk Operations Concurrency Limit Reached",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "bulkOperationsConcurrencyLimitReached"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "503": {
            "description": "The bulk API is temporarily disabled.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Bulk API Disabled",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "bulkAPIDisabled"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Remove users from groups",
        "tags": [
          "Groups"
        ]
      }
    }
  },
  "info": {
    "title": "Bulk API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://app.360learning.com",
      "description": "Production EU"
    },
    {
      "url": "https://app.us.360learning.com",
      "description": "Production US"
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v2/oauth2/token",
            "scopes": {}
          }
        },
        "description": "Use the token from the authentication endpoint in the Authorization header.\n\nExample: `Authorization: Bearer <token>`"
      }
    },
    "schemas": {
      "MembershipDeletionDTO": {
        "title": "Membership Deletion",
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "description": "The unique ID of the user to be removed from the group.",
            "format": "ObjectId",
            "example": "507f1f77bcf86cd799439011",
            "pattern": "^[a-fA-F0-9]{24}$"
          },
          "groupId": {
            "type": "string",
            "description": "The unique ID of the group from which the user will be removed.",
            "format": "ObjectId",
            "example": "507f1f77bcf86cd799439011",
            "pattern": "^[a-fA-F0-9]{24}$"
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "analyst",
              "editor",
              "coach",
              "contributor",
              "learner",
              "userAdmin"
            ],
            "description": "The role assigned to the user within the group."
          }
        },
        "required": [
          "userId",
          "groupId",
          "role"
        ]
      },
      "RemoveUsersFromGroupsBody": {
        "title": "Remove Users From Groups Body",
        "type": "object",
        "properties": {
          "input": {
            "description": "An array of objects, each specifying details for removing a user from a group.",
            "maxItems": 20000,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MembershipDeletionDTO"
            }
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "x-readme": {
    "apply-tag-changes": true
  }
}
```