Skip to content

Feature request: GitHub IdP Teams Sync support #293

@sean-nixon

Description

@sean-nixon

Overview

We are wanting to leverage GitHub's new Team Sync capabilities to manage GitHub team memberships with groups from our IdP (Azure AD). It would be great if the GitHub provider supported that functionality.

Proposed new resources

This functionality would probably require two new resources/data sources at a minimum.

  • New resource: github_team_sync_group_mapping
  • New data source: github_team_sync_groups

Possible configuration:

data "github_team_sync_groups" "my_groups" {}

resource "github_team" "some_team" {
  name        = "SomeTeam"
  description = "Some cool team"
}

resource "github_team_sync_group_mapping" "team_mapping" {
  team_id  = github_team.some_team.id
  
  dynamic "group" {
    for_each = [for g in data.my_groups.groups : g if g.name == "some_team_group"]
    content {
      group_id          = each.value.group_id
      group_name        = each.value.group_name
      group_description = each.value.group_description
    }
  } 
}

Related materials

More information on Team Sync here
https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github#enabling-team-synchronization

API Documentation
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions