Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.29 KB

File metadata and controls

34 lines (24 loc) · 1.29 KB
layout github
page_title GitHub: github_emu_group_mapping
description Manages mappings between external groups for enterprise managed users.

github_emu_group_mapping

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.

Example Usage

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
}

Argument Reference

The following arguments are supported:

  • team_slug - (Required) Slug of the GitHub team
  • group_id - (Required) Integer corresponding to the external group ID to be linked

Import

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