---
title: "Remove users from a group"
url: "https://earlyaccess.developers.bynder.com/apis/groups-1/versions/8b5e3751-b1f6-4df8-9f5d-f494f76062f0/operations/removeUsersFromGroup"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/groups-1/versions/8b5e3751-b1f6-4df8-9f5d-f494f76062f0.md

# Remove users from a group

`POST` `/api/1/groups/{groupId}/remove-users`

Operation ID: `removeUsersFromGroup`

Removes one or more users from the specified group. Pass a single-element array to remove one user. Users not currently in the group are silently ignored (the operation is idempotent). An empty `user_ids` array is accepted and is a no-op. Requires the **GROUPMANAGEMENT** security role.

## Path parameters

- `groupId` (string, uuid, required) - ID of the group (hyphens optional).

## Request body (required)

Content types: `application/json`

## Responses

- `200` - Users removed successfully.
- `400` - One or more user IDs do not exist in the account.
- `401` - Missing or invalid authentication. The response body is empty.
- `403` - The authenticated user does not have the **GROUPMANAGEMENT** security role.
- `404` - Group not found.
- `422` - Validation error (e.g. missing `user_ids` field or malformed UUID).

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Groups
  version: 1.0.0
servers:
  - url: https://{your-bynder-domain}/
paths:
  /api/1/groups/{groupId}/remove-users:
    post:
      description: >
        Removes one or more users from the specified group. Pass a
        single-element array to remove one user.


        Users not currently in the group are silently ignored (the operation is
        idempotent).

        An empty `user_ids` array is accepted and is a no-op.


        Requires the **GROUPMANAGEMENT** security role.
      operationId: removeUsersFromGroup
      parameters:
        - description: ID of the group (hyphens optional).
          in: path
          name: groupId
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/GroupMembersInput"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GroupMembersResult"
          description: Users removed successfully.
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: One or more user IDs do not exist in the account.
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/Forbidden"
        "404":
          $ref: "#/components/responses/NotFound"
        "422":
          description: Validation error (e.g. missing `user_ids` field or malformed UUID).
      security:
        - permanentToken:
            - GROUPMANAGEMENT
        - OAuth2:
            - GROUPMANAGEMENT
      summary: Remove users from a group
      tags:
        - Groups (Preferred)
security:
  - permanentToken:
      - GROUPMANAGEMENT
  - OAuth2:
      - GROUPMANAGEMENT
components:
  schemas:
    GroupMembersInput:
      properties:
        user_ids:
          description: IDs of the users to add or remove. An empty list is a no-op.
          items:
            format: uuid
            type: string
          type: array
      required:
        - user_ids
      type: object
    GroupMembersResult:
      properties:
        user_count:
          description: Updated number of members in the group after the operation.
          type: integer
      type: object
    ErrorResponse:
      properties:
        detail:
          properties:
            error:
              description: Human-readable description of the error.
              type: string
          type: object
      type: object
    NotFoundResponse:
      properties:
        detail:
          example: Not Found
          type: string
      type: object
  responses:
    Unauthorized:
      description: Missing or invalid authentication. The response body is empty.
    Forbidden:
      description: The authenticated user does not have the **GROUPMANAGEMENT**
        security role.
    NotFound:
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/NotFoundResponse"
      description: Group not found.
  securitySchemes:
    permanentToken:
      in: header
      name: Authorization
      type: apiKey
    OAuth2:
      flows:
        authorizationCode:
          authorizationUrl: https://{your-auth-url}
          scopes:
            GROUPMANAGEMENT: Grants permission to manage groups`
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
        clientCredentials:
          scopes:
            GROUPMANAGEMENT: Grants permission to manage groups
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
      type: oauth2
```
