| layout | github |
|---|---|
| page_title | GitHub: github_emu_group_mapping |
| description | Manages mappings between external groups for enterprise managed users. |
This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the Teams#ExternalGroups API. Note that this is a distinct resource from github_team_sync_group_mapping. github_emu_group_mapping is special to the Enterprise Managed User (EMU) external group feature, whereas github_team_sync_group_mapping is specific to Identity Provider Groups.
resource "github_emu_group_mapping" "example_emu_group_mapping" {
team_slug = "emu-test-team" # The GitHub team name to modify
group_id = 28836 # The group ID of the external group to link
}The following arguments are supported:
team_slug- (Required) Slug of the GitHub teamgroup_id- (Required) Integer corresponding to the external group ID to be linked
GitHub EMU External Group Mappings can be imported using the team_slug and external group_id separated by a colon, e.g.
$ terraform import github_emu_group_mapping.example_emu_group_mapping emu-test-team:28836