---
title: "Assign an external user to a group"
url: "https://developers.vzconnect.com/apis/group-api-1/versions/1abd2768-7ba0-4b09-8b60-156957ef21ce/operations/POST__groups_groupid_users_external"
---

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

# Assign an external user to a group

`POST` `/cmd/v1/groups/{groupid}/users/external`

Operation ID: `POST__groups_groupid_users_external`

Assigns an external user to the specified group. External users are managed outside of the REVEAL system and identified by their external ID.

## Path parameters

- `groupid` (string, required) - The unique group ID identifying the group to assign the external user to.

## Request body (required)

Content types: `application/json`

## Responses

- `204` - Successfully assigned the external user to the group.
- `400` - Bad request. The request body is missing or invalid, or no group or external user was found for the given IDs. Validation errors are returned as an array of objects with Name and Message.
- `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: Group API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/groups/{groupid}/users/external:
    post:
      tags:
        - Group API
      summary: Assign an external user to a group
      description: Assigns an external user to the specified group. External users are
        managed outside of the REVEAL system and identified by their external
        ID.
      parameters:
        - schema:
            type: string
          name: groupid
          in: path
          required: true
          description: The unique group ID identifying the group to assign the external
            user to.
      requestBody:
        description: The external ID of the user to assign to the group.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ExternalIdBody"
            example:
              ExternalId: HR-SYSTEM:100096
        required: true
      operationId: POST__groups_groupid_users_external
      responses:
        "204":
          description: Successfully assigned the external user to the group.
          content:
            application/json: {}
        "400":
          description: Bad request. The request body is missing or invalid, or no group or
            external user was found for the given IDs. Validation errors are
            returned as an array of objects with Name and Message.
          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/groups/[^/]+/users/external/?$
components:
  schemas:
    ExternalIdBody:
      type: object
      description: Request body to add an external user to a Group ID.
      required:
        - ExternalId
      properties:
        ExternalId:
          type: string
          description: The external ID that identifies the user outside REVEAL. The
            external ID is required for the API.
          example: HR-SYSTEM:100096
```
