Skip to content

Feature request: GitHub IdP Teams Sync support #293

Closed

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

Activity

  1. self-assigned this
    on Mar 25, 2020
  2. jlpedrosa commented on Mar 27, 2020

    @jlpedrosa

    Hi @anGie44

    Are you working on this one? If help is needed I could take it.

  3. anGie44 commented on Mar 27, 2020

    @anGie44
    Collaborator

    hi @jlpedrosa! I am atm. I'll reach out if anything/reference you to the forthcoming PR if interested :)

  4. linked a pull request that will close this issueaddition of team sync support #400on Mar 30, 2020
  5. anGie44 commented on Apr 1, 2020

    @anGie44
    Collaborator

    Hi @sean-nixon @jlpedrosa and all following this issue, I've proposed changes with the linked PR but could also use help in running acceptance tests (currently they are skipped given the boolean env var ENTERPRISE_ACCOUNT is not set by default) . If you have access to an enterprise cloud test org and able to configure SAML and complete the Azure AD admin OAuth flow that would be of much help to validate the suggested changes :) thanks in advance!

  6. added
    Status: Up for grabs
    and removed on Apr 1, 2020
  7. davidkarlsen commented on May 4, 2020

    @davidkarlsen

    Any update on this?

  8. anGie44 commented on May 4, 2020

    @anGie44
    Collaborator

    hi @davidkarlsen, we plan to have this feature in the upcoming v2.8.0 release of the provider

  9. added this to the v2.8.0 milestone on May 4, 2020
  10. anGie44 commented on May 5, 2020

    @anGie44
    Collaborator

    Note: related changes have been merged and will release with the v2.8.0 release of the provider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

New data sourceNew resourceStatus: Up for grabsType: Feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions