top of page
Search

GitHub Enterprise Managed Users with Microsoft Entra ID - Part 3

Writer: Nathan
Nathan
14 minutes ago
3 min read

If you haven't already, please check out the previous parts of this series.




Introduction


In this post, we will talk about GitHub Teams. There are a handful of ways that you can manage your GitHub Teams. They can be created at the Enterprise level, or they can be created at the Organization level. They can be standalone teams or they can be either linked (or synchronized) to a group from your Identity Provider (IdP). By the end of this post you should understand each type of team as well as the available options for each one. So, let's get started.



GitHub Teams "Linked" To Entra Groups


First, let's quickly discuss "synchronized" teams. This method is used if you have a GitHub Enterprise with Personal Accounts configured to use SAML. This only works with Organization Teams and will not work with Enterprise Teams. We won't be discussing "synchronized" teams, as this series focused strictly on GitHub Enterprise with Managed Users.


When using GitHub Enterprise with Managed Users you should create Teams that are "linked" (via SCIM) to Entra groups. As long as your Entra group (1) already exists, (2) is a "Security" group and not a "Microsoft 365" group, and (3) has been "assigned" to the Enterprise App, then you'll be able to "link" this group to a GitHub Team. Reminder: to assign a group to an Enterprise App you must have Entra P1 or P2 licensing. For more information about assigning groups to an Enterprise App please see part 2 of the series.


One final note about "linked" teams. Let's take an example where you add a user to an Entra Group and this results in the user being added to a GitHub Team in a GitHub Organization where they previously did not have access. In this case, GitHub will automatically add the user to this new Organization.




Linked Teams

Standard Teams

Parent/Child Teams

❌ Not supported

✅ Supported

Team Maintainer Role

❌ Not supported

✅ Supported

Manually Added Members

❌ Not supported

✅ Supported

Entra Security Groups

✅ Supported

n/a

Entra Microsoft 365 Groups

❌ Not supported

n/a

Entra Nested Groups

❌ Not supported

n/a


GitHub Teams that are "linked" to Entra Groups have a few limitations, which are highlighted in both the diagram and table above:


  • Teams connected to Entra groups cannot be parents of other teams nor a child of another team.

  • Teams connected to Entra groups cannot assign the team "maintainer" role to a member of that team.

  • Teams connected to Entra groups cannot have manually added members.

  • Teams connected to Entra groups only recognize direct members of the Entra Group; nested Entra group membership is not supported.

  • Teams connected to Entra groups must use Entra "Security" Groups; Entra "Microsoft 365" Groups are not supported.



Enterprise Teams vs. Organization Teams


GitHub Teams can be created at two possible levels: at the Enterprise level or at the Organization level. GitHub's recommendation: if you have a use case that applies to the Enterprise level, or a use case that applies to multiple Organizations, then use Enterprise Teams. If you have a use case that is scoped to just a single Organization, then it might make sense to create an Organization Team.


It is also important to note that Enterprise Teams have some restrictions, which we will discuss below. This is not a full list, and I highly encourage you to read the docs for the full comparison.



Enterprise Team

Organization Team

Can be added to CODEOWNERS

❌ Not supported

✅ Supported

Can be added to GitHub Project Boards

❌ Not supported

✅ Supported

Nested teams

❌ Not supported

⚠️ Supported (*except for linked teams)

Team Maintainer role

❌ Not supported

⚠️ Supported (*except for linked teams)


We already mentioned that "linked" team do not support nested teams or the team maintainer role. So, if you are already using linked teams, then the fact that Enterprise Teams don't support these features is not a huge deal. However, if you use CODEOWNERS files in your repositories, then it might make you upset to find out that Enterprise Teams cannot be added to CODEOWNERS files.



References:


Comments


bottom of page