{"meta":{"title":"REST-API-Endpunkte für SCIM","intro":"Nutze die REST-API, um die Erstellung von Benutzern und Teammitgliedschaften mit SCIM zu automatisieren.","product":"REST-API","breadcrumbs":[{"href":"/de/enterprise-cloud@latest/rest","title":"REST-API"},{"href":"/de/enterprise-cloud@latest/rest/enterprise-admin","title":"Enterprise-Verwaltung"},{"href":"/de/enterprise-cloud@latest/rest/enterprise-admin/scim","title":"SCIM"}],"documentType":"article"},"body":"# REST-API-Endpunkte für SCIM\n\nNutze die REST-API, um die Erstellung von Benutzern und Teammitgliedschaften mit SCIM zu automatisieren.\n\n> \\[!NOTE]\n>\n> * Mit diesen Endpunkten können Sie den Zugriff auf Ihr Unternehmen über GitHub Enterprise Cloud mithilfe von SCIM bereitstellen. Der Vorgang ist nur für die Verwendung mit Enterprise Managed Users verfügbar. Wenn du Enterprise Managed Users nicht verwendest und den Zugriff auf deine Organisationen mit SCIM bereitstellen möchtest, findest du weitere Informationen dazu unter [REST-API-Endpunkte für SCIM](/de/enterprise-cloud@latest/rest/enterprise-admin/scim).\n> * GitHub empfiehlt, die Bereitstellung in einer Umgebung zu testen, die von den Produktionsdaten auf Ihrem IdP und GitHub isoliert ist.\n\n## About SCIM (Informationen zu SCIM)\n\nZum Erstellen, Verwalten und Deaktivieren von Benutzerkonten für Ihre Unternehmensmitglieder auf GitHub mussmuss Ihr IdP SCIM für die Kommunikation mit GitHub implementieren. SCIM ist eine offene Spezifikation für die Verwaltung von Benutzeridentitäten zwischen Systemen. Verschiedene IdPs bieten unterschiedliche Erfahrungen für die Konfiguration der SCIM-Bereitstellung. Wenn Sie keinen Partner-IDP mit einer vorhandenen Integration verwenden, können Sie diese mithilfe der folgenden API-Endpunkte integrieren. Weitere Informationen finden Sie unter [Bereitstellen von Benutzern und Gruppen mit SCIM mithilfe der REST-API](/de/enterprise-cloud@latest/admin/managing-iam/provisioning-user-accounts-with-scim/provisioning-users-and-groups-with-scim-using-the-rest-api).\n\n### Basis-URL\n\nZur Verwaltung der Benutzer und Gruppen deines Unternehmens mithilfe von SCIM verwendest du die folgende Basis-URL, um mit den Endpunkten in dieser Kategorie zu kommunizieren.\n\n```http\nhttps://api.github.com/scim/v2/enterprises/{enterprise}/\n```\n\n### Authentifizierung\n\nUm API-Anfragen zu authentifizieren, muss die Person, die SCIM auf dem IdP konfiguriert, ein personal access token (classic) mit dem Geltungsbereich `scim:enterprise` verwenden, das der IdP im Header `Authorization` der Anfrage bereitstellen muss. Weitere Informationen zu personal access tokens (classic) findest du unter [Verwalten deiner persönlichen Zugriffstoken](/de/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).\n\nGitHub empfiehlt, sich als Einrichtungsbenutzer des Unternehmens anzumelden. Über SCIM werden auch andere Benutzerkontentypen erstellt, sodass die Authentifizierung als anderer Benutzer zu unbeabsichtigten Folgen führen könnte, z. B. Sperrung des Zugangs zu deinem Unternehmen. Schreibanforderungen an diese APIs sind über unsere veröffentlichten IdP-Anwendungen oder über den direkten API-Zugriff auf unsere SCIM-Endpunkte möglich. Wenn der Inhaber eines anderen Unternehmens Informationen aus der API lesen muss, verwenden Sie ein personal access token (classic) mit dem Geltungsbereich `admin:enterprise`, um `GET` Anfragen an Ihre aktuelle SCIM-Implementierung zu senden. Weitere Informationen finden Sie unter [Konfigurieren der SCIM-Bereitstellung für unternehmensverwaltete Benutzer](/de/enterprise-cloud@latest/admin/managing-iam/provisioning-user-accounts-with-scim/configuring-scim-provisioning-for-users#creating-a-personal-access-token).\n\n### Abbildung von SAML- und SCIM-Daten\n\nNachdem sich verwaltetes Benutzerkonto erfolgreich mit SAML SSO authentifiziert hat, um auf Ihr Unternehmen zuzugreifen, verknüpft GitHub den Benutzer mit einer per SCIM bereitgestellten Identität. Um die Identitäten erfolgreich zu verknüpfen, müssen der SAML-Identitätsanbieter und die SCIM-Integration übereinstimmende eindeutige Bezeichner verwenden.\n\nGitHub erfordert, dass der folgende SAML-Anspruch und das SCIM-Attribut erfolgreich mit der von SCIM bereitgestellten Identität übereinstimmen. Identitätsanbieter können sich in dem Feld unterscheiden, das zur eindeutigen Identifizierung eines Benutzers verwendet wird.\n\n#### Microsoft Entra ID für SAML\n\nUm Entra ID (früher als Azure AD bezeichnet) für SAML zu verwenden, müssen die folgenden SAML-Ansprüche und SCIM-Attribute übereinstimmen.\n\n| SAML-Anspruch                                                   | SCIM-Attribut abgleichen |\n| :-------------------------------------------------------------- | :----------------------- |\n| `http://schemas.microsoft.com/identity/claims/objectidentifier` | `externalId`             |\n\n#### Andere IdPs für SAML\n\nUm andere IdPs für SAML verwenden zu können, müssen die folgenden SAML-Ansprüche und das SCIM-Attribut übereinstimmen.\n\n| SAML-Anspruch | SCIM-Attribut abgleichen |\n| :------------ | :----------------------- |\n| `NameID`      | `userName`               |\n\n### Unterstützte SCIM-Benutzerattribute\n\n`Users`-Endpunkte in dieser Kategorie unterstützen innerhalb eines Anforderungsparameters die folgenden Attribute.\n\n| Name              | Typ     | BESCHREIBUNG                                                                                                                                                                                                                                                                                                                          |\n| :---------------- | :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `displayName`     | String  | Für Menschen lesbarer Benutzername.                                                                                                                                                                                                                                                                                                   |\n| `name.formatted`  | String  | Der vollständige und für die Anzeige formatierte Name des Benutzers/der Benutzerin, einschließlich aller zweiter Vornamen, Titel und Namenszusätze.                                                                                                                                                                                   |\n| `name.givenName`  | String  | Der Vorname des Benutzers.                                                                                                                                                                                                                                                                                                            |\n| `name.familyName` | String  | Der Nachname des Benutzers.                                                                                                                                                                                                                                                                                                           |\n| `userName`        | String  | Der vom SCIM-Anbieter generierte Benutzername des Benutzers/der Benutzerin. Wird vor der Verwendung einer [Normalisierung](/de/enterprise-cloud@latest/admin/managing-iam/iam-configuration-reference/username-considerations-for-external-authentication#about-username-normalization) unterzogen. Muss pro Benutzer eindeutig sein. |\n| `emails`          | Array   | Liste der Benutzer-E-Mails.                                                                                                                                                                                                                                                                                                           |\n| `roles`           | Array   | Liste der Benutzerrollen.                                                                                                                                                                                                                                                                                                             |\n| `externalId`      | String  | Dieser Bezeichner wird von einem SCIM-Anbieter generiert. Muss pro Benutzer eindeutig sein.                                                                                                                                                                                                                                           |\n| `id`              | String  | Bezeichner, der vom SCIM-Endpunkt des GitHub generiert wird.                                                                                                                                                                                                                                                                          |\n| `active`          | Boolean | Gibt an, ob die Identität aktiv ist (`true`) oder ausgesetzt werden sollte (`false`).                                                                                                                                                                                                                                                 |\n\n### Unterstützte SCIM-Gruppenattribute\n\n`Groups`-Endpunkte in dieser Kategorie unterstützen innerhalb eines Anforderungsparameters die folgenden Attribute.\n\n| Name          | Typ    | BESCHREIBUNG                                                                                |\n| :------------ | :----- | :------------------------------------------------------------------------------------------ |\n| `displayName` | String | Für Menschen lesbarer Gruppenname.                                                          |\n| `members`     | String | Liste der Mitglieder, die der Gruppe im SCIM-Anbieter zugewiesen sind                       |\n| `externalId`  | String | Dieser Bezeichner wird von einem SCIM-Anbieter generiert. Muss pro Benutzer eindeutig sein. |\n\n> \\[!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n## List provisioned SCIM groups for an enterprise\n\n```\nGET /scim/v2/enterprises/{enterprise}/Groups\n```\n\nLists provisioned SCIM groups in an enterprise.\nYou can improve query search time by using the excludedAttributes query parameter with a value of members to exclude members from the response.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`filter`** (string)\n  If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are externalId, id, and displayName. For example, ?filter=externalId eq \"9138790-10932-109120392-12321\".\n\n* **`excludedAttributes`** (string)\n  Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time.\n\n* **`startIndex`** (integer)\n  Used for pagination: the starting index of the first result to return when paginating through values.\n  Default: `1`\n\n* **`count`** (integer)\n  Used for pagination: the number of results to return per page.\n  Default: `30`\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **200** - Success, either groups were found or not found\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups\n```\n\n**Response schema (Status: 200):**\n\n* `schemas`: required, array of string, enum: `urn:ietf:params:scim:api:messages:2.0:ListResponse`\n* `totalResults`: required, integer\n* `Resources`: required, array of object\n* `startIndex`: required, integer\n* `itemsPerPage`: required, integer\n\n## Provision a SCIM enterprise group\n\n```\nPOST /scim/v2/enterprises/{enterprise}/Groups\n```\n\nCreates a SCIM group for an enterprise.\nWhen members are part of the group provisioning payload, they're designated as external group members. Providers are responsible for maintaining a mapping between the externalId and id for each user.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n#### Body parameters\n\n* **`schemas`** (array of strings) (required)\n  The URIs that are used to indicate the namespaces of the SCIM schemas.\n  Supported values are: urn:ietf:params:scim:schemas:core:2.0:Group\n\n* **`externalId`** (string) (required)\n  A unique identifier for the resource as defined by the provisioning client.\n\n* **`displayName`** (string) (required)\n  A human-readable name for a security group.\n\n* **`members`** (array of objects)\n  The group members.\n  * **`value`** (string) (required)\n    The local unique identifier for the member\n  * **`displayName`** (string) (required)\n    The display name associated with the member\n\n### HTTP response status codes\n\n* **201** - Group has been created\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **409** - Duplicate record detected\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:Group\"\n  ],\n  \"externalId\": \"8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159\",\n  \"displayName\": \"Engineering\",\n  \"members\": [\n    {\n      \"value\": \"879db59-3bdf-4490-ad68-ab880a2694745\",\n      \"displayName\": \"User 1\"\n    },\n    {\n      \"value\": \"0db508eb-91e2-46e4-809c-30dcbda0c685\",\n      \"displayName\": \"User 2\"\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 201):**\n\n* all of:\n  * **object**\n    * `schemas`: required, array of string, enum: `urn:ietf:params:scim:schemas:core:2.0:Group`, `urn:ietf:params:scim:api:messages:2.0:ListResponse`\n    * `externalId`: string or null\n    * `displayName`: string or null\n    * `members`: array of objects:\n      * `value`: required, string\n      * `$ref`: required, string\n      * `display`: string\n  * **object**\n    * `id`: string\n    * `members`: array of objects:\n      * `value`: string\n      * `$ref`: string\n      * `display`: string\n    * `meta`: object:\n      * `resourceType`: required, string, enum: `User`, `Group`\n      * `created`: string\n      * `lastModified`: string\n      * `location`: string\n\n## Get SCIM provisioning information for an enterprise group\n\n```\nGET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}\n```\n\nGets information about a SCIM group.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_group_id`** (string) (required)\n  A unique identifier of the SCIM group.\n\n* **`excludedAttributes`** (string)\n  Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **200** - Success, a group was found\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups/SCIM_GROUP_ID\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise group](#provision-a-scim-enterprise-group).\n\n## Set SCIM information for a provisioned enterprise group\n\n```\nPUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}\n```\n\nReplaces an existing provisioned group’s information.\nYou must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. If you want to only update a specific attribute, use the Update an attribute for a SCIM enterprise group endpoint instead.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_group_id`** (string) (required)\n  A unique identifier of the SCIM group.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n#### Body parameters\n\n* **`schemas`** (array of strings) (required)\n  The URIs that are used to indicate the namespaces of the SCIM schemas.\n  Supported values are: urn:ietf:params:scim:schemas:core:2.0:Group\n\n* **`externalId`** (string) (required)\n  A unique identifier for the resource as defined by the provisioning client.\n\n* **`displayName`** (string) (required)\n  A human-readable name for a security group.\n\n* **`members`** (array of objects)\n  The group members.\n  * **`value`** (string) (required)\n    The local unique identifier for the member\n  * **`displayName`** (string) (required)\n    The display name associated with the member\n\n### HTTP response status codes\n\n* **200** - Group was updated\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **409** - Duplicate record detected\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Group\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups/SCIM_GROUP_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:Group\"\n  ],\n  \"externalId\": \"8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159\",\n  \"displayName\": \"Engineering\"\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise group](#provision-a-scim-enterprise-group).\n\n#### Group with member\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups/SCIM_GROUP_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:Group\"\n  ],\n  \"externalId\": \"8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159\",\n  \"displayName\": \"Engineering\",\n  \"members\": [\n    {\n      \"value\": \"879db59-3bdf-4490-ad68-ab880a2694745\",\n      \"displayName\": \"User 1\"\n    },\n    {\n      \"value\": \"0db508eb-91e2-46e4-809c-30dcbda0c685\",\n      \"displayName\": \"User 2\"\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise group](#provision-a-scim-enterprise-group).\n\n## Update an attribute for a SCIM enterprise group\n\n```\nPATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}\n```\n\nUpdate a provisioned group’s individual attributes.\nTo modify a group's values, you'll need to use a specific Operations JSON format which must include at least one of the following operations: add, remove, or replace. For examples and more information on this SCIM format, consult the SCIM specification. The update function can also be used to add group memberships.\nYou can submit group memberships individually or in batches for improved efficiency.\nNote\n\nMemberships are referenced via a local user id. Ensure users are created before referencing them here.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_group_id`** (string) (required)\n  A unique identifier of the SCIM group.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n#### Body parameters\n\n* **`Operations`** (array of objects) (required)\n  patch operations list\n  * **`op`** (string) (required)\n    Can be one of: `add`, `replace`, `remove`\n  * **`path`** (string)\n  * **`value`** (string)\n    Corresponding 'value' of that field specified by 'path'\n\n* **`schemas`** (array of strings) (required)\n  undefinedSupported values are: urn:ietf:params:scim:api:messages:2.0:PatchOp\n\n### HTTP response status codes\n\n* **200** - Success, group was updated\n\n* **204** - No Content\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **409** - Duplicate record detected\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Update Group\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups/SCIM_GROUP_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n  ],\n  \"Operations\": [\n    {\n      \"op\": \"replace\",\n      \"path\": \"displayName\",\n      \"value\": \"Employees\"\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise group](#provision-a-scim-enterprise-group).\n\n#### Add Members\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups/SCIM_GROUP_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n  ],\n  \"Operations\": [\n    {\n      \"op\": \"add\",\n      \"path\": \"members\",\n      \"value\": [\n        {\n          \"value\": \"879db59-3bdf-4490-ad68-ab880a2694745\"\n        },\n        {\n          \"value\": \"0db508eb-91e2-46e4-809c-30dcbda0c685\"\n        }\n      ]\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise group](#provision-a-scim-enterprise-group).\n\n## Delete a SCIM group from an enterprise\n\n```\nDELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}\n```\n\nDeletes a SCIM group from an enterprise.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_group_id`** (string) (required)\n  A unique identifier of the SCIM group.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **204** - Group was deleted, no content\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Groups/SCIM_GROUP_ID\n```\n\n**Response schema (Status: 204):**\n\n## List SCIM provisioned identities for an enterprise\n\n```\nGET /scim/v2/enterprises/{enterprise}/Users\n```\n\nLists provisioned SCIM enterprise members.\nWhen you remove a user with a SCIM-provisioned external identity from an enterprise using a patch with active flag to false, the user's metadata remains intact. This means they can potentially re-join the enterprise later. Although, while suspended, the user can't sign in. If you want to ensure the user can't re-join in the future, use the delete request. Only users who weren't permanently deleted will appear in the result list.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`filter`** (string)\n  If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are userName, externalId, id, and displayName. For example, ?filter=externalId eq \"9138790-10932-109120392-12321\".\n\n* **`startIndex`** (integer)\n  Used for pagination: the starting index of the first result to return when paginating through values.\n  Default: `1`\n\n* **`count`** (integer)\n  Used for pagination: the number of results to return per page.\n  Default: `30`\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **200** - Success, either users were found or not found\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [List provisioned SCIM groups for an enterprise](#list-provisioned-scim-groups-for-an-enterprise).\n\n## Provision a SCIM enterprise user\n\n```\nPOST /scim/v2/enterprises/{enterprise}/Users\n```\n\nCreates an external identity for a new SCIM enterprise user.\nSCIM is responsible for user provisioning, not authentication. The actual user authentication is handled by SAML. However, with SCIM enabled, users must first be provisioned via SCIM before they can sign in through SAML.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n#### Body parameters\n\n* **`schemas`** (array of strings) (required)\n  The URIs that are used to indicate the namespaces of the SCIM schemas.\n  Supported values are: urn:ietf:params:scim:schemas:core:2.0:User\n\n* **`externalId`** (string) (required)\n  A unique identifier for the resource as defined by the provisioning client.\n\n* **`active`** (boolean) (required)\n  Whether the user active in the IdP.\n\n* **`userName`** (string) (required)\n  The username for the user.\n\n* **`name`** (object)\n  * **`formatted`** (string)\n    The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.\n  * **`familyName`** (string) (required)\n    The family name of the user.\n  * **`givenName`** (string) (required)\n    The given name of the user.\n  * **`middleName`** (string)\n    The middle name(s) of the user.\n\n* **`displayName`** (string) (required)\n  A human-readable name for the user.\n\n* **`emails`** (array of objects) (required)\n  The emails for the user.\n  * **`value`** (string) (required)\n    The email address.\n  * **`type`** (string) (required)\n    The type of email address.\n  * **`primary`** (boolean) (required)\n    Whether this email address is the primary address.\n\n* **`roles`** (array of objects)\n  The roles assigned to the user.\n  * **`display`** (string)\n  * **`type`** (string)\n  * **`value`** (string) (required)\n    The role value representing a user role in GitHub.\n    Can be one of: `user`, `27d9891d-2c17-4f45-a262-781a0e55c80a`, `guest_collaborator`, `1ebc4a02-e56c-43a6-92a5-02ee09b90824`, `enterprise_owner`, `981df190-8801-4618-a08a-d91f6206c954`, `ba4987ab-a1c3-412a-b58c-360fc407cb10`, `billing_manager`, `0e338b8c-cc7f-498a-928d-ea3470d7e7e3`, `e6be2762-e4ad-4108-b72d-1bbe884a0f91`\n  * **`primary`** (boolean)\n    Is the role a primary role for the user.\n\n### HTTP response status codes\n\n* **201** - User has been created\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **409** - Duplicate record detected\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### User\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:User\"\n  ],\n  \"externalId\": \"E012345\",\n  \"active\": true,\n  \"userName\": \"E012345\",\n  \"name\": {\n    \"formatted\": \"Ms. Mona Lisa Octocat\",\n    \"familyName\": \"Octocat\",\n    \"givenName\": \"Mona\",\n    \"middleName\": \"Lisa\"\n  },\n  \"displayName\": \"Mona Lisa\",\n  \"emails\": [\n    {\n      \"value\": \"mlisa@example.com\",\n      \"type\": \"work\",\n      \"primary\": true\n    }\n  ],\n  \"roles\": [\n    {\n      \"value\": \"user\",\n      \"primary\": false\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 201):**\n\n* all of:\n  * **object**\n    * `schemas`: required, array of string, enum: `urn:ietf:params:scim:schemas:core:2.0:User`\n    * `externalId`: string or null\n    * `active`: required, boolean\n    * `userName`: string\n    * `name`: object:\n      * `formatted`: string\n      * `familyName`: string\n      * `givenName`: string\n      * `middleName`: string\n    * `displayName`: string or null\n    * `emails`: required, array of objects:\n      * `value`: required, string\n      * `type`: string\n      * `primary`: boolean\n    * `roles`: array of objects:\n      * `display`: string\n      * `type`: string\n      * `value`: required, string, enum: `user`, `27d9891d-2c17-4f45-a262-781a0e55c80a`, `guest_collaborator`, `1ebc4a02-e56c-43a6-92a5-02ee09b90824`, `enterprise_owner`, `981df190-8801-4618-a08a-d91f6206c954`, `ba4987ab-a1c3-412a-b58c-360fc407cb10`, `billing_manager`, `0e338b8c-cc7f-498a-928d-ea3470d7e7e3`, `e6be2762-e4ad-4108-b72d-1bbe884a0f91`\n      * `primary`: boolean\n  * **object**\n    * `id`: required, string\n    * `groups`: array of objects:\n      * `value`: string\n      * `$ref`: string\n      * `display`: string\n    * `meta`: required, object:\n      * `resourceType`: required, string, enum: `User`, `Group`\n      * `created`: string\n      * `lastModified`: string\n      * `location`: string\n\n#### Enterprise Owner\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:User\"\n  ],\n  \"externalId\": \"E012345\",\n  \"active\": true,\n  \"userName\": \"E012345\",\n  \"name\": {\n    \"formatted\": \"Ms. Mona Lisa Octocat\",\n    \"familyName\": \"Octocat\",\n    \"givenName\": \"Mona\",\n    \"middleName\": \"Lisa\"\n  },\n  \"displayName\": \"Mona Lisa\",\n  \"emails\": [\n    {\n      \"value\": \"mlisa@example.com\",\n      \"type\": \"work\",\n      \"primary\": true\n    }\n  ],\n  \"roles\": [\n    {\n      \"value\": \"enterprise_owner\",\n      \"primary\": false\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 201):**\n\n* all of:\n  * **object**\n    * `schemas`: required, array of string, enum: `urn:ietf:params:scim:schemas:core:2.0:User`\n    * `externalId`: string or null\n    * `active`: required, boolean\n    * `userName`: string\n    * `name`: object:\n      * `formatted`: string\n      * `familyName`: string\n      * `givenName`: string\n      * `middleName`: string\n    * `displayName`: string or null\n    * `emails`: required, array of objects:\n      * `value`: required, string\n      * `type`: string\n      * `primary`: boolean\n    * `roles`: array of objects:\n      * `display`: string\n      * `type`: string\n      * `value`: required, string, enum: `user`, `27d9891d-2c17-4f45-a262-781a0e55c80a`, `guest_collaborator`, `1ebc4a02-e56c-43a6-92a5-02ee09b90824`, `enterprise_owner`, `981df190-8801-4618-a08a-d91f6206c954`, `ba4987ab-a1c3-412a-b58c-360fc407cb10`, `billing_manager`, `0e338b8c-cc7f-498a-928d-ea3470d7e7e3`, `e6be2762-e4ad-4108-b72d-1bbe884a0f91`\n      * `primary`: boolean\n  * **object**\n    * `id`: required, string\n    * `groups`: array of objects:\n      * `value`: string\n      * `$ref`: string\n      * `display`: string\n    * `meta`: required, object:\n      * `resourceType`: required, string, enum: `User`, `Group`\n      * `created`: string\n      * `lastModified`: string\n      * `location`: string\n\n## Get SCIM provisioning information for an enterprise user\n\n```\nGET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}\n```\n\nGets information about a SCIM user.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_user_id`** (string) (required)\n  The unique identifier of the SCIM user.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **200** - Success, a user was found\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users/SCIM_USER_ID\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise user](#provision-a-scim-enterprise-user).\n\n## Set SCIM information for a provisioned enterprise user\n\n```\nPUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}\n```\n\nReplaces an existing provisioned user's information.\nYou must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update only a specific attribute, refer to the Update an attribute for a SCIM user endpoint.\nWarning\n\nSetting active: false will suspend a user. As a result, their handle and primary email address will be obfuscated.\n{\n\"schemas\": \\[\n\"urn:ietf:params:scim:schemas:core:2.0:User\"\n],\n\"externalId\": \"E012345\",\n\"active\": false,\n\"userName\": \"E012345\",\n\"name\": {\n\"familyName\": \"Octocat\",\n\"givenName\": \"Mona\",\n\"middleName\": \"Lisa\"\n},\n\"displayName\": \"Mona Lisa\",\n\"emails\": \\[\n{\n\"value\": \"<mlisa@example.com>\",\n\"type\": \"work\",\n\"primary\": true\n}\n],\n\"roles\": \\[\n{\n\"value\": \"User\"\n}\n]\n}\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_user_id`** (string) (required)\n  The unique identifier of the SCIM user.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n#### Body parameters\n\n* **`schemas`** (array of strings) (required)\n  The URIs that are used to indicate the namespaces of the SCIM schemas.\n  Supported values are: urn:ietf:params:scim:schemas:core:2.0:User\n\n* **`externalId`** (string) (required)\n  A unique identifier for the resource as defined by the provisioning client.\n\n* **`active`** (boolean) (required)\n  Whether the user active in the IdP.\n\n* **`userName`** (string) (required)\n  The username for the user.\n\n* **`name`** (object)\n  * **`formatted`** (string)\n    The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.\n  * **`familyName`** (string) (required)\n    The family name of the user.\n  * **`givenName`** (string) (required)\n    The given name of the user.\n  * **`middleName`** (string)\n    The middle name(s) of the user.\n\n* **`displayName`** (string) (required)\n  A human-readable name for the user.\n\n* **`emails`** (array of objects) (required)\n  The emails for the user.\n  * **`value`** (string) (required)\n    The email address.\n  * **`type`** (string) (required)\n    The type of email address.\n  * **`primary`** (boolean) (required)\n    Whether this email address is the primary address.\n\n* **`roles`** (array of objects)\n  The roles assigned to the user.\n  * **`display`** (string)\n  * **`type`** (string)\n  * **`value`** (string) (required)\n    The role value representing a user role in GitHub.\n    Can be one of: `user`, `27d9891d-2c17-4f45-a262-781a0e55c80a`, `guest_collaborator`, `1ebc4a02-e56c-43a6-92a5-02ee09b90824`, `enterprise_owner`, `981df190-8801-4618-a08a-d91f6206c954`, `ba4987ab-a1c3-412a-b58c-360fc407cb10`, `billing_manager`, `0e338b8c-cc7f-498a-928d-ea3470d7e7e3`, `e6be2762-e4ad-4108-b72d-1bbe884a0f91`\n  * **`primary`** (boolean)\n    Is the role a primary role for the user.\n\n### HTTP response status codes\n\n* **200** - User was updated\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **409** - Duplicate record detected\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### User\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users/SCIM_USER_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:schemas:core:2.0:User\"\n  ],\n  \"externalId\": \"E012345\",\n  \"active\": true,\n  \"userName\": \"E012345\",\n  \"name\": {\n    \"formatted\": \"Ms. Mona Lisa Octocat\",\n    \"familyName\": \"Octocat\",\n    \"givenName\": \"Mona\",\n    \"middleName\": \"Lisa\"\n  },\n  \"displayName\": \"Mona Lisa\",\n  \"emails\": [\n    {\n      \"value\": \"mlisa@example.com\",\n      \"type\": \"work\",\n      \"primary\": true\n    }\n  ],\n  \"roles\": [\n    {\n      \"value\": \"user\",\n      \"primary\": false\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise user](#provision-a-scim-enterprise-user).\n\n## Update an attribute for a SCIM enterprise user\n\n```\nPATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}\n```\n\nUpdate a provisioned user's individual attributes.\nTo modify a user's attributes, you'll need to provide a Operations JSON formatted request that includes at least one of the following actions: add, remove, or replace. For specific examples and more information on the SCIM operations format, please refer to the SCIM specification.\nNote\n\nComplex SCIM path selectors that include filters are not supported. For example, a path selector defined as \"path\": \"emails\\[type eq \"work\"]\" will be ineffective.\n\nWarning\n\nSetting active: false will suspend a user. As a result, their handle and primary email address will be obfuscated.\n{\n\"schemas\": \\[\n\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n],\n\"Operations\": \\[\n{\n\"op\": \"replace\",\n\"value\": {\n\"active\": false\n}\n}\n]\n}\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_user_id`** (string) (required)\n  The unique identifier of the SCIM user.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n#### Body parameters\n\n* **`Operations`** (array of objects) (required)\n  patch operations list\n  * **`op`** (string) (required)\n    Can be one of: `add`, `replace`, `remove`\n  * **`path`** (string)\n  * **`value`** (string)\n    Corresponding 'value' of that field specified by 'path'\n\n* **`schemas`** (array of strings) (required)\n  undefinedSupported values are: urn:ietf:params:scim:api:messages:2.0:PatchOp\n\n### HTTP response status codes\n\n* **200** - Success, user was updated\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **409** - Duplicate record detected\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Multi Valued Property\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users/SCIM_USER_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n  ],\n  \"Operations\": [\n    {\n      \"op\": \"replace\",\n      \"path\": \"emails[type eq 'work'].value\",\n      \"value\": \"updatedEmail@microsoft.com\"\n    },\n    {\n      \"op\": \"replace\",\n      \"path\": \"name.familyName\",\n      \"value\": \"updatedFamilyName\"\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise user](#provision-a-scim-enterprise-user).\n\n#### Single Valued Property\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users/SCIM_USER_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n  ],\n  \"Operations\": [\n    {\n      \"op\": \"replace\",\n      \"path\": \"userName\",\n      \"value\": \"5b50642d-79fc-4410-9e90-4c077cdd1a59@testuser.com\"\n    },\n    {\n      \"op\": \"replace\",\n      \"path\": \"displayName\",\n      \"value\": \"Monalisa Octocat\"\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise user](#provision-a-scim-enterprise-user).\n\n#### Disable User\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users/SCIM_USER_ID \\\n  -d '{\n  \"schemas\": [\n    \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n  ],\n  \"Operations\": [\n    {\n      \"op\": \"replace\",\n      \"path\": \"active\",\n      \"value\": false\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Provision a SCIM enterprise user](#provision-a-scim-enterprise-user).\n\n## Delete a SCIM user from an enterprise\n\n```\nDELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}\n```\n\nSuspends a SCIM user permanently from an enterprise. This action will: remove all the user's data,  anonymize their login, email, and display name, erase all external identity SCIM attributes, delete the user's emails, avatar, PATs, SSH keys, OAuth authorizations, GPG keys, and SAML mappings. This action is irreversible.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`scim_user_id`** (string) (required)\n  The unique identifier of the SCIM user.\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **204** - User was deleted, no content\n\n* **400** - Bad request\n\n* **401** - Authorization failure\n\n* **403** - Permission denied\n\n* **404** - Resource not found\n\n* **429** - Too many requests\n\n* **500** - Internal server error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/scim/v2/enterprises/ENTERPRISE/Users/SCIM_USER_ID\n```\n\n**Response schema (Status: 204):**"}