-
Notifications
You must be signed in to change notification settings - Fork 948
Feature request: GitHub IdP Teams Sync support #293
Copy link
Copy link
Closed
Labels
New data sourceNew resourceStatus: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: FeatureNew feature or requestNew feature or request
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
New data sourceNew resourceStatus: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: FeatureNew feature or requestNew feature or request