---
title: "Get all users"
url: "https://developers.vzconnect.com/apis/user-api/versions/8058c80f-08ad-4baf-8fda-034794ba017a/operations/GET__users"
---

> Full API specification: https://developers.vzconnect.com/apis/user-api/versions/8058c80f-08ad-4baf-8fda-034794ba017a.md

# Get all users

`GET` `/cmd/v1/users`

Operation ID: `GET__users`

Retrieves User data by calling for all users within an account, or a specific user when the userId query parameter is supplied. Only ACTIVE users within a REVEAL account are returned; no deactivated or deleted users are returned in the query. The list contains abridged user records and is limited to 1000 users; pagination is not supported.

## Query parameters

- `userId` (integer, optional) - When provided, returns the specific user identified by this User ID. When omitted, returns the list of all active users.

## Responses

- `200` - Successfully retrieved the list of users.
- `204` - No users found for the authenticated account.
- `400` - Bad request. The request was malformed or contained invalid parameters.
- `401` - Unauthorized. The request lacks valid authentication credentials.
- `500` - Internal server error. An unexpected error occurred on the server.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: User API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/users:
    get:
      tags:
        - User API
      summary: Get all users
      description: Retrieves User data by calling for all users within an account, or
        a specific user when the userId query parameter is supplied. Only ACTIVE
        users within a REVEAL account are returned; no deactivated or deleted
        users are returned in the query. The list contains abridged user records
        and is limited to 1000 users; pagination is not supported.
      operationId: GET__users
      responses:
        "200":
          description: Successfully retrieved the list of users.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/UserAbridgedRecord"
              example:
                - user:
                    FirstName: Kevin
                    LastName: Abarra
                    EmailAddress: user@example.com
                    EmployeeId: null
                    IsAdministrator: false
                    IsRegionalAdministrator: false
                    Role: Routist/LB/WO
                    IsDriver: true
                    UserId: 1
                  _links: null
        "204":
          description: No users found for the authenticated account.
          content:
            application/json: {}
        "400":
          description: Bad request. The request was malformed or contained invalid
            parameters.
          content:
            application/json: {}
        "401":
          description: Unauthorized. The request lacks valid authentication credentials.
          content:
            application/json: {}
        "500":
          description: Internal server error. An unexpected error occurred on the server.
          content:
            application/json: {}
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/users/?$
      parameters:
        - name: userId
          in: query
          required: false
          description: When provided, returns the specific user identified by this User
            ID. When omitted, returns the list of all active users.
          schema:
            type: integer
          example: 1
components:
  schemas:
    UserAbridgedRecord:
      type: object
      description: A wrapper object containing an abridged user and supplemental
        hypermedia links.
      properties:
        user:
          $ref: "#/components/schemas/UserAbridged"
        _links:
          $ref: "#/components/schemas/UserLinks"
    UserAbridged:
      type: object
      description: An abridged REVEAL user record returned in the list of users.
      properties:
        FirstName:
          type: string
          description: The first name of the user.
          example: Dan
        LastName:
          type: string
          description: The last name of the user.
          example: Bowyer
        EmailAddress:
          type: string
          description: The email address for the user. The email address is also the
            REVEAL username login and is mandatory when creating a user record.
          example: user@example.com
        EmployeeId:
          type: integer
          nullable: true
          description: Employee ID is the unique identifier for the user within REVEAL.
            The Employee ID is not a mandatory field within the REVEAL account,
            but it is required for the API.
          example: 982736342
        IsAdministrator:
          type: boolean
          default: false
          description: Boolean field for true or false. Default is false. True indicates
            that the user is an Administrator for the referenced REVEAL account.
            Administrator is the highest level role within a REVEAL account.
          example: false
        IsRegionalAdministrator:
          type: boolean
          default: false
          description: Boolean field for true or false. Default is false. This field can
            only be set to true if the corresponding REVEAL account is enabled
            with Regional Administration permission.
          example: true
        Role:
          type: string
          nullable: true
          description: Role can be NULL if the user is an Administrator or a Regional
            Admin. If the user is not an administrator, then the name of the
            role applied to the user is returned. Roles are created within the
            REVEAL account's Admin section.
          example: null
        IsDriver:
          type: boolean
          default: false
          description: Boolean field for true or false. Default is false. When creating or
            editing a user, the user can be specified to also appear as a Driver
            within the REVEAL account. If the API user requests for a User to
            also be a Driver, a unique Driver Number must also be provided.
          example: false
        UserId:
          type: integer
          description: An integer that serves as a primary key, uniquely identifying each
            record in the table.
          example: 1
        ExternalId:
          type: string
          nullable: true
          description: The unique identifier for the user in an external system, if the
            user is managed externally.
          example: null
    UserLinks:
      type: object
      nullable: true
      description: The links provided enable the integration user to gather additional
        meta data for a User record. The groups link provides details on which
        groups the User record belongs to within the REVEAL account.
      properties:
        self:
          $ref: "#/components/schemas/HyperlinkRef"
        groups:
          $ref: "#/components/schemas/HyperlinkRef"
    HyperlinkRef:
      type: object
      properties:
        href:
          type: string
          description: The hyperlink reference URL.
```
