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

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

# Remove an external user from a group

`DELETE` `/cmd/v1/groups/{groupid}/users/external/{externalId}`

Operation ID: `DELETE__groups_groupid_users_external_externalid`

Removes the specified external user from the specified group. The external user is not deleted; it is only unassigned from the group.

## Path parameters

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

## Responses

- `204` - Successfully removed the external user from the group.
- `400` - Bad request. No group or external user was found for the given IDs.
- `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/{externalId}:
    delete:
      tags:
        - Group API
      summary: Remove an external user from a group
      description: Removes the specified external user from the specified group. The
        external user is not deleted; it is only unassigned from the group.
      parameters:
        - schema:
            type: string
          name: externalId
          in: path
          required: true
          description: The external ID identifying the external user to remove from the
            group.
        - schema:
            type: string
          name: groupid
          in: path
          required: true
          description: The unique group ID identifying the group to remove the external
            user from.
      operationId: DELETE__groups_groupid_users_external_externalid
      responses:
        "204":
          description: Successfully removed the external user from the group.
          content:
            application/json: {}
        "400":
          description: Bad request. No group or external user was found for the given IDs.
          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/[^/]+/?$
```
