---
title: "Get groups for a driver"
url: "https://developers.vzconnect.com/apis/group-api-1/versions/1abd2768-7ba0-4b09-8b60-156957ef21ce/operations/GET__groups_drivers__drivernumber_"
---

> Full API specification: https://developers.vzconnect.com/apis/group-api-1/versions/1abd2768-7ba0-4b09-8b60-156957ef21ce.md

# Get groups for a driver

`GET` `/cmd/v1/groups/drivers/{drivernumber}`

Operation ID: `GET__groups_drivers__drivernumber_`

Retrieve all groups the driver belongs to. Multiple groups can be returned for each Driver Number since drivers can belong to multiple groups within REVEAL.

## Path parameters

- `drivernumber` (string, required) - The Driver Number, the unique identifier used to reference the driver within the API.

## Responses

- `200` - Successfully retrieved the groups for the specified driver. An empty array is returned if the driver is not assigned to any group.
- `400` - Bad request. The driver number format is invalid.
- `401` - Unauthorized. The request lacks valid authentication credentials.
- `404` - The specified driver was not found.
- `500` - Internal server error. An unexpected error occurred on the server.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Group API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/groups/drivers/{drivernumber}:
    get:
      tags:
        - Group API
      summary: Get groups for a driver
      description: Retrieve all groups the driver belongs to. Multiple groups can be
        returned for each Driver Number since drivers can belong to multiple
        groups within REVEAL.
      parameters:
        - schema:
            type: string
            example: 6543-10
          name: drivernumber
          in: path
          required: true
          description: The Driver Number, the unique identifier used to reference the
            driver within the API.
      operationId: GET__groups_drivers__drivernumber_
      responses:
        "200":
          description: Successfully retrieved the groups for the specified driver. An
            empty array is returned if the driver is not assigned to any group.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/Group"
              example:
                - Name: Entire Test Fleet1
                  Id: "999998"
                - Name: Entire Test Fleet2
                  Id: "999999"
        "400":
          description: Bad request. The driver number format is invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Unauthorized. The request lacks valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: The specified driver was not found.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Internal server error. An unexpected error occurred on the server.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/groups/drivers/[^/]+/?$
components:
  schemas:
    Group:
      type: object
      description: A group within the REVEAL account.
      properties:
        Name:
          type: string
          description: The name of the group created within the REVEAL account.
          example: CPTESTGROUP
        Id:
          type: string
          description: The unique identifier associated with the group created within the
            REVEAL account. The Group ID is an alphanumeric field that must be
            unique within the REVEAL account and is mandatory in order to
            reference the group through the integration services.
          example: CPTG1
    Error:
      type: object
      description: Generic error response. The documentation does not define an
        explicit error body schema.
      properties:
        Message:
          type: string
          description: A human-readable description of the error.
```
