---
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

---

[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/dae0cc3790f0/schema)
