Skip to content

Commit 38f3f4b

Browse files
stacycarterdmabuadajc-clark
authored
Updating the SAML<>SCIM mapping logic in the GHEC Classic Org SCIM REST API doc (#54668)
Co-authored-by: Dalia Abuadas <[email protected]> Co-authored-by: Joe Clark <[email protected]>
1 parent 1247877 commit 38f3f4b

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

content/rest/scim/scim.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,39 @@ These endpoints are used by SCIM-enabled Identity Providers (IdPs) to automate p
3030

3131
You must authenticate as an owner of a {% data variables.product.github %} organization to use these endpoints. The REST API expects an OAuth 2.0 Bearer token (for example, a {% data variables.product.prodname_github_app %} user access token) to be included in the `Authorization` header. If you use a {% data variables.product.pat_v1 %} for authentication, it must have the `admin:org` scope and you must also [authorize it for use with your SAML SSO organization](/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on).
3232

33-
### Mapping of SAML and SCIM data
33+
### Matching SAML and SCIM attributes
3434

35-
{% data reusables.scim.nameid-and-username-must-match %}
35+
To successfully link a {% data variables.product.github %} user account to a SCIM identity in an organization, specific attributes from your Identity Provider's SAML response and SCIM API provisioning call must match for a user.
36+
37+
#### Microsoft Entra ID for SAML
38+
39+
When using Entra ID (previously known as Azure AD) for SAML, the following SAML attribute and SCIM attribute must match.
40+
41+
| SAML attribute | Matching SCIM attribute |
42+
| :- | :- |
43+
| `http://schemas.microsoft.com/identity/claims/objectidentifier` | `externalId` |
44+
45+
#### Other IdPs for SAML
46+
47+
When using other IdPs for SAML, the following SAML claims and SCIM attribute must match.
48+
49+
| SAML attribute | Matching SCIM attribute |
50+
| :- | :- |
51+
| `NameID` | `userName` |
52+
53+
There are two different ways a {% data variables.product.github %} user account can get linked to a SCIM identity in an organization when these SAML/SCIM attributes match:
54+
55+
1. For users who are not yet members of the organization:
56+
* The IdP sends a SCIM provisioning call to {% data variables.product.github %} for a user who is not a member of an organization. This generates an organization invitation and an unlinked SCIM identity in the organization.
57+
* User authenticates via SAML in the organization.
58+
* {% data variables.product.github %} automatically links the SAML and SCIM identity to the new user account in the organization.
59+
60+
1. For existing organization members:
61+
* The IdP sends a SCIM provisioning call to {% data variables.product.github %} for a user who is already a member of the organization.
62+
* If the organization member does not have a linked SAML identity in the organization, this generates an organization invitation and an unlinked SCIM identity in the organization. User authenticates via SAML in the organization to link their SAML and SCIM identity.
63+
* If the organization member has a linked SAML identity in the organization, {% data variables.product.github %} automatically links the SCIM identity to the existing user account in the organization. No organization invite is created.
64+
65+
Ensuring that a user gets properly linked to their SCIM identity in the organization can help prevent unexpected issues with SCIM deprovisioning when the user's access to the app is removed on the IdP side. For more information on auditing the linked SCIM identities in an organization, see [AUTOTITLE](/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/troubleshooting-identity-and-access-management-for-your-organization#auditing-organization-members-on-github)
3666

3767
### Supported SCIM User attributes
3868

0 commit comments

Comments
 (0)