You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/rest/scim/scim.md
+32-2
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,39 @@ These endpoints are used by SCIM-enabled Identity Providers (IdPs) to automate p
30
30
31
31
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).
32
32
33
-
### Mapping of SAML and SCIM data
33
+
### Matching SAML and SCIM attributes
34
34
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.
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)
0 commit comments