---
title: "Get group by ID"
url: "https://earlyaccess.developers.bynder.com/apis/groups-1/versions/8b5e3751-b1f6-4df8-9f5d-f494f76062f0/operations/getGroup"
---

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

# Get group by ID

`GET` `/api/1/groups/{groupId}`

Operation ID: `getGroup`

Returns a single group by its ID, including member count. Requires the **GROUPMANAGEMENT** security role.

## Path parameters

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

## Responses

- `200` - Successful response
- `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 (malformed group ID).

## 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}:
    get:
      description: |
        Returns a single group by its ID, including member count.

        Requires the **GROUPMANAGEMENT** security role.
      operationId: getGroup
      parameters:
        - description: ID of the group (hyphens optional).
          in: path
          name: groupId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Group"
          description: Successful response
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/Forbidden"
        "404":
          $ref: "#/components/responses/NotFound"
        "422":
          description: Validation error (malformed group ID).
      security:
        - permanentToken:
            - GROUPMANAGEMENT
        - OAuth2:
            - GROUPMANAGEMENT
      summary: Get group by ID
      tags:
        - Groups (Preferred)
security:
  - permanentToken:
      - GROUPMANAGEMENT
  - OAuth2:
      - GROUPMANAGEMENT
components:
  schemas:
    Group:
      example:
        description: Everyone in the marketing department
        id: 0397e4bd-33fe-4b8f-a51d-4c2f1d9b6c1a
        name: Marketing
        user_count: 12
      properties:
        description:
          type:
            - string
            - "null"
        id:
          format: uuid
          type: string
        name:
          type: string
        user_count:
          description: Number of members in the group.
          type: integer
      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
```
