Skip to main content

Managing team memberships with identity provider groups

You can manage team membership on GitHub Enterprise Cloud through your identity provider (IdP) by connecting IdP groups with your 具有托管用户的企业.

要使用身份提供程序管理企业中的用户,必须为企业启用 企业托管用户,这可用于 GitHub Enterprise Cloud。 更多信息请参阅“关于 企业托管用户”。

About team management with 企业托管用户

With 企业托管用户, you can manage team membership within your enterprise through your IdP. When you connect a team in one of your enterprise's organizations to an IdP group, changes to membership from the IdP group are reflected in your enterprise automatically, reducing the need for manual updates and custom scripts.

When a change to an IdP group or a new team connection results in a 托管用户帐户 joining a team in an organization they were not already a member of, the 托管用户帐户 will automatically be added to the organization. Organization owners can also manage organization membership manually. When you disconnect a group from a team, users who became members of the organization via team membership are removed from the organization if they are not assigned membership in the organization by any other means.

You can connect a team in your enterprise to one IdP group. You can assign the same IdP group to multiple teams in your enterprise.

If you are connecting an existing team to an IdP group, you must first remove any members that were added manually. After you connect a team in your enterprise to an IdP group, your IdP administrator must make team membership changes through the identity provider. You cannot manage team membership on

When group membership changes on your IdP, your IdP sends a SCIM request with the changes to according to the schedule determined by your IdP, so change may not be immediate. Any requests that change team or organization membership will register in the audit log as changes made by the account used to configure user provisioning.

Teams connected to IdP groups cannot be parents of other teams nor a child of another team. If the team you want to connect to an IdP group is a parent or child team, we recommend creating a new team or removing the nested relationships that make your team a parent team.

To manage repository access for any team in your enterprise, including teams connected to an IdP group, you must make changes on For more information, see "Managing team access to an organization repository".

Creating a new team connected to an IdP group

Any member of an organization can create a new team and connect the team to an IdP group.

  1. 在 的右上角,单击您的头像,然后单击 Your organizations(您的组织)个人资料菜单中的组织
  2. 单击您的组织名称。 组织列表中的组织名称
  3. 在组织名称下,单击 团队团队选项卡
  4. 在 Teams(团队)选项卡的右侧,单击 New team(新团队)新团队按钮
  5. 在“Create new team(创建新团队)”下,输入新团队的名称。 团队名称字段
  6. (可选)在“Description(描述)”字段中输入团队的描述。 团队描述字段
  7. To connect a team, select the "Identity Provider Groups" drop-down menu and click the team you want to connect. Drop-down menu to choose identity provider groups
  8. 决定团队是可见还是机密。 可见性选项,包括可见和机密
  9. 单击 Create team(创建团队)

Managing the connection between an existing team and an IdP group

Organization owners and team maintainers can manage the existing connection between an IdP group and a team.

Note: Before you connect an existing team on to an IdP group for the first time, all members of the team on must first be removed. For more information, see "Removing organization members from a team."

  1. 在 的右上角,单击您的头像,然后单击 Your profile(您的个人资料)个人资料照片

  2. 在 的右上角,单击您的头像,然后单击 Your organizations(您的组织)个人资料菜单中的组织

  3. 在组织名称下,单击 团队


  4. 在 Teams(团队)选项卡上,单击团队名称。 组织的团队列表

  5. 在团队页面顶部,单击 Settings(设置)团队设置选项卡

  6. Optionally, under "Identity Provider Group", to the right of the IdP group you want to disconnect, click . Unselect a connected IdP group from the GitHub team

  7. To connect an IdP group, under "Identity Provider Group", select the drop-down menu, and click an identity provider group from the list. Drop-down menu to choose identity provider group

  8. Click Save changes.

Viewing IdP groups, group membership, and connected teams

You can review a list of IdP groups, see any teams connected to an IdP group, and see the membership of each IdP group on GitHub Enterprise Cloud. You must edit the membership for a group on your IdP.

  1. 在 的右上角,单击您的个人资料照片,然后单击 Your enterprises(您的企业)GitHub Enterprise Cloud 上个人资料照片下拉菜单中的"Your enterprises(您的企业)"

  2. 在企业列表中,单击您想要查看的企业。 企业列表中的企业名称

  3. To review a list of IdP groups, in the left sidebar, click Identity provider. Screenshot showing "Identity provider" tab in enterprise sidebar

  4. To see the members and teams connected to an IdP group, click the group's name. Screenshot showing list of IdP groups, the group name is highlighted

  5. To view the teams connected to the IdP group, click Teams. Screenshot showing the "Teams" button