---
title: "Create a SCIM group"
method: POST
path: "/api/organizations/{name}/scim-provisioning/v2/Groups"
tags: ["scim"]
---

# Create a SCIM group

`POST /api/organizations/{name}/scim-provisioning/v2/Groups`

Creates a new group in the organization. The group name must be unique within the organization.

## Path parameters

- `name` string, required

## Request body

- object
  - `displayName` string, required
  - `externalId` string
  - `members` object[], required — Array of SCIM user ids
    - `value` string, required

## Response `201`

SCIM Group

- object
  - `schemas` string[], required
  - `id` string, required
  - `displayName` string, required
  - `members` object[], required
    - `value` string, required
  - `externalId` string, nullable
  - `meta` object, required
    - `resourceType` 'Group', required
    - `location` string, required

## Other responses

- `409` — Group already exists

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/6ab9f7d9cfb5/schema)
