You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Importing GitHub EMU group mapping fails for more than 1 team #3030
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Oh, the resource definition in the documentation looks OK.
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
}
It is just that the import uses the group ID but does not handle the team
properly.
@jmaixl I think I wasn't able to express myself clearly.
Can you supply us with an example config snippet which describes how the terraform code should like if if you were to successfully import the mapping?
First create two group mappings from the same group to 2 different teams (also known as creating a team using a group to populate its membership). This can be done in Terraform but also manually so you can import them afterward.
resource "github_emu_group_mapping" "example_emu_group_mapping" {
team_slug = "test-team-1" # The GitHub team name to modify
group_id = 28836 # The group ID of the external group to link
}
resource "github_emu_group_mapping" "example_emu_group_mapping" {
team_slug = "test-team-2" # The GitHub team name to modify
group_id = 28836 # The group ID of the external group to link
}
Activity
github-actions commentedon Dec 31, 2025
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with
Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀deiga commentedon Dec 31, 2025
Hey @jmaixl,
Could you post an example of what the resource definition would look like of the mapping you are trying to import?
jmaixl commentedon Dec 31, 2025
Ideally the mapping is identified by both the group ID and the team slug:
deiga commentedon Dec 31, 2025
@jmaixl Thanks! But I meant the code for
resource "github_emu_group_mapping" "example_emu_group_mapping" { ... }AKA what structure are you trying to import it into. Otherwise I'm not sure I can reproduce what you are experiencing
jmaixl commentedon Dec 31, 2025
deiga commentedon Jan 5, 2026
@jmaixl I think I wasn't able to express myself clearly.
Can you supply us with an example config snippet which describes how the terraform code should like if if you were to successfully import the mapping?
I want to be able to reproduce the issue
jmaixl commentedon Jan 5, 2026
First create two group mappings from the same group to 2 different teams (also known as creating a team using a group to populate its membership). This can be done in Terraform but also manually so you can import them afterward.
Now, this import will fail:
deiga commentedon Jan 5, 2026
Thank you! 🙏
From this I gather that maybe we should change the import to use a combined import ID like
<team-slug>:<group-id>. What do you think?jmaixl commentedon Jan 5, 2026
Yes, I think that's a good idea (and what I was thinking above
Add failing test to verify problem in integrations#3030
Add failing test to verify problem in integrations#3030
Add failing test to verify problem in integrations#3030
Add failing test to verify problem in integrations#3030
Add failing test to verify problem in integrations#3030
Add failing test to verify problem in integrations#3030
Add failing test to verify problem in integrations#3030
Add failing test to verify problem in integrations#3030
[BUG] Enable importing `github_emu_group_mapping` for Group with mult…
[BUG] Enable importing `github_emu_group_mapping` for Group with mult…