{"meta":{"title":"Puntos de conexión de API de REST para SCIM","intro":"Usa la API REST para automatizar la creación de usuarios y las pertenencias a equipos con SCIM.","product":"REST API","breadcrumbs":[{"href":"/es/enterprise-cloud@latest/rest","title":"REST API"},{"href":"/es/enterprise-cloud@latest/rest/enterprise-admin","title":"Administración empresarial"},{"href":"/es/enterprise-cloud@latest/rest/enterprise-admin/scim","title":"SCIM"}],"documentType":"article"},"body":"# Puntos de conexión de API de REST para SCIM\n\nUsa la API REST para automatizar la creación de usuarios y las pertenencias a equipos con SCIM.\n\n> \\[!NOTE]\n>\n> * Estos puntos de conexión permiten aprovisionar cuentas de usuario para tu empresa en GitHub Enterprise Cloud mediante SCIM. La operación solo está disponible para su uso con Enterprise Managed Users. Si no usas Enterprise Managed Users y quieres aprovisionar el acceso a las organizaciones mediante SCIM, consulta [Puntos de conexión de API de REST para SCIM](/es/enterprise-cloud@latest/rest/enterprise-admin/scim).\n> * GitHub recomienda probar el aprovisionamiento en un entorno aislado de los datos de producción en su IdP y GitHub.\n\n## Acerca de SCIM\n\nPara crear, administrar y desactivar cuentas de usuario para los miembros de su empresa en GitHub, el IdP debe implementar SCIM para la comunicación con GitHub. SCIM es una especificación abierta para la administración de identidades de usuario entre sistemas. Distintos IdP proporcionan experiencias diferentes para la configuración del aprovisionamiento de SCIM. Si no utiliza un IdP de partner con una integración existente, puede integrarlo mediante los siguientes puntos de conexión de API. Para más información, consulta [Aprovisionamiento de usuarios y grupos con SCIM mediante la API de REST](/es/enterprise-cloud@latest/admin/managing-iam/provisioning-user-accounts-with-scim/provisioning-users-and-groups-with-scim-using-the-rest-api).\n\n### URL base\n\nPara administrar los usuarios y grupos de la empresa mediante SCIM, usa la siguiente dirección URL base para la comunicación con los puntos de conexión de esta categoría.\n\n```http\nhttps://api.github.com/scim/v2/enterprises/{enterprise}/\n```\n\n### Autenticación\n\nPara autenticar las solicitudes en la API, la persona que configura SCIM en el IdP debe usar un personal access token (classic) con ámbito `scim:enterprise`, que el IdP debe proporcionar en el encabezado `Authorization` de la solicitud. Para obtener más información sobre personal access tokens (classic), consulta [Administración de tokens de acceso personal](/es/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).\n\nGitHub recomienda autenticarse como usuario de configuración para la empresa. Otras cuentas de usuario se crean a través de SCIM, por lo que la autenticación como un usuario diferente podría dar lugar a consecuencias no deseadas, como bloquearse de la empresa. Las solicitudes de escritura a estas API son posibles a través de nuestras aplicaciones IdP publicadas o a través del acceso directo de API a nuestros puntos de conexión SCIM. Si otro propietario de la organización necesita leer información de la API, use un personal access token (classic) con el alcance `admin:enterprise` para enviar solicitudes `GET` en su implementación actual de SCIM. Para más información, consulta [Configurar el aprovisionamiento de SCIM para Usuarios administrados por la empresa](/es/enterprise-cloud@latest/admin/managing-iam/provisioning-user-accounts-with-scim/configuring-scim-provisioning-for-users#creating-a-personal-access-token).\n\n### Mapeo de los datos de SAML y de SCIM\n\nDespués de que un cuenta de usuario administrada se autentique correctamente para acceder a su empresa mediante el SSO de SAML, GitHub vincula al usuario con una identidad aprovisionada mediante SCIM. Para vincular correctamente las identidades, el proveedor de identidades de SAML y la integración de SCIM deben usar identificadores únicos coincidentes.\n\nGitHub requiere la siguiente declaración SAML y el atributo SCIM para relacionar correctamente al usuario con la identidad aprovisionada mediante SCIM. Los proveedores de identidades pueden diferir en el campo utilizado para identificar de forma única a un usuario.\n\n#### Microsoft Entra ID compatible con SAML\n\nPara usar Entra ID (anteriormente conocido como Azure AD) para SAML, las siguientes declaraciones de SAML y el atributo SCIM deben coincidir.\n\n| Reclamación SAML                                                | Atributo SCIM correspondiente |\n| :-------------------------------------------------------------- | :---------------------------- |\n| `http://schemas.microsoft.com/identity/claims/objectidentifier` | `externalId`                  |\n\n#### Otros IdP para el SAML\n\nPara usar otros IdP para SAML, deben coincidir las siguientes afirmaciones de SAML y el atributo SCIM.\n\n| Reclamación SAML | Atributo SCIM correspondiente |\n| :--------------- | :---------------------------- |\n| `NameID`         | `userName`                    |\n\n### Atributos de usuario de SCIM compatibles\n\nLos puntos de conexión `Users` de esta categoría admiten los atributos siguientes en los parámetros de una solicitud.\n\n| Nombre            | Tipo     | Descripción                                                                                                                                                                                                                                                                                              |\n| :---------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `displayName`     | Cadena   | Nombre legible para el usuario.                                                                                                                                                                                                                                                                          |\n| `name.formatted`  | Cadena   | El nombre completo del usuario, incluido el segundo nombre, los títulos y los sufijos, con formato para mostrar.                                                                                                                                                                                         |\n| `name.givenName`  | Cadena   | El primer nombre del usuario.                                                                                                                                                                                                                                                                            |\n| `name.familyName` | Cadena   | Los apellidos del usuario.                                                                                                                                                                                                                                                                               |\n| `userName`        | Cadena   | Nombre de usuario del usuario, que genera el proveedor de SCIM. Se somete a la [normalización](/es/enterprise-cloud@latest/admin/managing-iam/iam-configuration-reference/username-considerations-for-external-authentication#about-username-normalization) antes de su uso. Debe ser único por usuario. |\n| `emails`          | Matriz   | Lista de correos electrónicos del usuario.                                                                                                                                                                                                                                                               |\n| `roles`           | Matriz   | Lista de roles del usuario.                                                                                                                                                                                                                                                                              |\n| `externalId`      | Cadena   | Este identificador lo genera un proveedor de SCIM. Debe ser único por usuario.                                                                                                                                                                                                                           |\n| `id`              | Cadena   | Identificador generado por el punto de conexión SCIM del GitHub.                                                                                                                                                                                                                                         |\n| `active`          | Booleano | Indica si la identidad está activa (`true`) o debe suspenderse (`false`).                                                                                                                                                                                                                                |\n\n### Atributos de grupo de SCIM admitidos\n\nLos puntos de conexión `Groups` de esta categoría admiten los atributos siguientes en los parámetros de una solicitud.\n\n| Nombre        | Tipo   | Descripción                                                                    |\n| :------------ | :----- | :----------------------------------------------------------------------------- |\n| `displayName` | Cadena | Nombre legible para el grupo.                                                  |\n| `members`     | Cadena | Lista de miembros asignados al grupo en el proveedor SCIM                      |\n| `externalId`  | Cadena | Este identificador lo genera un proveedor de SCIM. Debe ser único por usuario. |\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):**"}