Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。 有关最新信息,请访问英语文档

关于你的企业在 上的 SAML SSO

如果企业成员在 上管理他们自己的用户帐户,你可将 SAML 身份验证配置为企业或组织的附加访问限制。

About SAML SSO for your enterprise on

If your enterprise members manage their own user accounts on, you can configure SAML authentication as an additional access restriction for your enterprise or organization. SAML single sign-on (SSO) gives organization owners and enterprise owners using GitHub Enterprise Cloud a way to control and secure access to organization resources like repositories, issues, and pull requests.

If you configure SAML SSO, members of your organization will continue to sign into their personal accounts on When a member accesses most resources within your organization, GitHub redirects the member to your IdP to authenticate. After successful authentication, your IdP redirects the member back to GitHub. For more information, see "About authentication with SAML single sign-on."

Note: SAML SSO does not replace the normal sign-in process for GitHub. Unless you use Enterprise Managed Users, members will continue to sign into their personal accounts on, and each personal account will be linked to an external identity in your IdP.

Enterprise owners can enable SAML SSO and centralized authentication through a SAML IdP across all organizations owned by an enterprise account. After you enable SAML SSO for your enterprise account, SAML SSO is enforced for all organizations owned by your enterprise account. All members will be required to authenticate using SAML SSO to gain access to the organizations where they are a member, and enterprise owners will be required to authenticate using SAML SSO when accessing an enterprise account. For more information, see "About authentication for your enterprise" and Configuring SAML single sign-on for your enterprise."

Alternatively, you can provision and manage the accounts of your enterprise members with Enterprise Managed Users. To help you determine whether SAML SSO or Enterprise Managed Users is better for your enterprise, see "About authentication for your enterprise."

If a SAML configuration error or an issue with your identity provider (IdP) prevents you from using SAML SSO, you can use a recovery code to access your enterprise. For more information, see "Managing recovery codes for your enterprise."

After you enable SAML SSO, depending on the IdP you use, you may be able to enable additional identity and access management features.

If you use Azure AD as your IdP, you can use team synchronization to manage team membership within each organization. If team sync is enabled for your organization or enterprise account, you can synchronize a GitHub team with an IdP group. When you synchronize a GitHub team with an IdP group, membership changes to the IdP group are reflected on GitHub Enterprise Cloud automatically, reducing the need for manual updates and custom scripts. For more information, see "Managing team synchronization for organizations in your enterprise."

Note: You cannot configure SCIM for your enterprise account unless your account was created to use Enterprise Managed Users. For more information, see "About Enterprise Managed Users."

There are special considerations when enabling SAML SSO for your enterprise account if any of the organizations owned by the enterprise account are already configured to use SAML SSO. For more information, see "Switching your SAML configuration from an organization to an enterprise account."

For more information about the configuration of SAML SSO on GitHub Enterprise Cloud, see "Configuring SAML single sign-on for your enterprise." To learn how to configure both authentication and provisioning for with your specific IdP, see the articles for individual IdPs in "Using SAML for enterprise IAM."

Supported IdPs

We test and officially support the following IdPs. For SAML SSO, we offer limited support for all identity providers that implement the SAML 2.0 standard. For more information, see the SAML Wiki on the OASIS website.

IdPSAMLTeam synchronization
Active Directory Federation Services (AD FS)
Azure Active Directory (Azure AD)

Further reading