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

# Create SCIM invitation

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

Creates an invitation for a user to join the organization. The user must have an existing Hugging Face account.

## Path parameters

- `name` string, required

## Request body

- object
  - `schemas` string[], required
  - `userName` string, required — Username of the existing Hugging Face user
  - `emails` object[], required
    - `value` string, email, required
  - `active` boolean
  - `externalId` string, required — SSO unique identifier (SAML nameid or OIDC sub claim) - required for SSO login

## Response `201`

SCIM User

- object
  - `schemas` string[], required
  - `id` string, required
  - `externalId` string, nullable, required
  - `userName` string, required
  - `displayName` string, required
  - `name` object, required
    - `givenName` string, required
    - `familyName` string, required
    - `formatted` string, required
  - `emails` object[], required
    - `value` string, required
    - `primary` boolean, required
    - `type` 'work' — We only support work emails, other types are converted to work
  - `active` boolean, required
  - `meta` object, required
    - `resourceType` 'User', required
    - `location` string, required

## Changes

- **2026-09-08** `bd17546f47b8` — 3 breaking
  - the `emails/items/type` response's property type changed from no type to `string` for status `201`
  - the `meta/resourceType` response's property type changed from no type to `string` for status `201`
  - the `schemas/items/` response's property type changed from no type to `string` for status `201`

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/organizations/:name/scim-provisioning/v2/Users/post.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/2be5f0669ac6?raw)
