gitlab_group_subgroups data source does not respect skip_groups parameter
Bug Report
When a list of group ids are passed to skip_groups, those groups are still returned by the data source.
Relevant Terraform Configuration
data "gitlab_group_subgroups" "subgroups" {
group_id = 51345110
skip_groups = [58780598, 59920634, 52738442, 62778102]
}
output "subgroups" {
value = data.gitlab_group_subgroups.subgroups
}
Relevant Log Output
These are the debug logs of the `terraform` command output:
Changes to Outputs:
+ subgroups = {
+ all_available = null
+ group_id = 51345110
+ id = "51345110"
+ min_access_level = null
+ order_by = null
+ owned = null
+ search = null
+ skip_groups = [
+ 58780598,
+ 59920634,
+ 52738442,
+ 62778102,
]
+ sort = null
+ statistics = null
+ subgroups = [
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-10-06T17:14:39Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Custody"
+ full_path = "arendelle/custody"
+ group_id = 58780598
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Custody"
+ parent_id = 51345110
+ path = "custody"
+ project_creation_level = "developer"
+ request_access_enabled = false
+ require_two_factor_authentication = false
+ share_with_group_lock = false
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/custody"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2023-02-06T20:11:18Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Derivatives"
+ full_path = "arendelle/derivatives"
+ group_id = 63490480
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Derivatives"
+ parent_id = 51345110
+ path = "derivatives"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/derivatives"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-12-19T19:41:06Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Developer Sandbox"
+ full_path = "arendelle/developer-sandbox"
+ group_id = 61655037
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Developer Sandbox"
+ parent_id = 51345110
+ path = "developer-sandbox"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/developer-sandbox"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-11-29T14:49:30Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Jupiter"
+ full_path = "arendelle/jupiter"
+ group_id = 60890114
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Jupiter"
+ parent_id = 51345110
+ path = "jupiter"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/jupiter"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-12-12T17:17:51Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Mars"
+ full_path = "arendelle/mars"
+ group_id = 61383039
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Mars"
+ parent_id = 51345110
+ path = "mars"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/mars"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2023-01-20T17:48:29Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Mercury"
+ full_path = "arendelle/mercury"
+ group_id = 62778102
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Mercury"
+ parent_id = 51345110
+ path = "mercury"
+ project_creation_level = "developer"
+ request_access_enabled = false
+ require_two_factor_authentication = false
+ share_with_group_lock = false
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/mercury"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-05-04T03:02:47Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Nebula"
+ full_path = "arendelle/nebula"
+ group_id = 52738442
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Nebula"
+ parent_id = 51345110
+ path = "nebula"
+ project_creation_level = "developer"
+ request_access_enabled = false
+ require_two_factor_authentication = false
+ share_with_group_lock = false
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/nebula"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-04-13T20:51:07Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Pipeline Templates"
+ full_path = "arendelle/pipeline-templates"
+ group_id = 51979050
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Pipeline Templates"
+ parent_id = 51345110
+ path = "pipeline-templates"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/pipeline-templates"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-10-03T15:38:50Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / Saturn"
+ full_path = "arendelle/saturn"
+ group_id = 58634755
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "Saturn"
+ parent_id = 51345110
+ path = "saturn"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/saturn"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-11-04T19:34:17Z"
+ default_branch_protection = 2
+ description = "Groups within this container should only contain users. Do not create projects here."
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / User Groups"
+ full_path = "arendelle/user-groups"
+ group_id = 59920634
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "User Groups"
+ parent_id = 51345110
+ path = "user-groups"
+ project_creation_level = "noone"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/user-groups"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-12-08T22:11:28Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / infra"
+ full_path = "arendelle/infra"
+ group_id = 61260193
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "infra"
+ parent_id = 51345110
+ path = "infra"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/infra"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2022-10-06T17:47:58Z"
+ default_branch_protection = 3
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / risk"
+ full_path = "arendelle/risk"
+ group_id = 58781801
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "risk"
+ parent_id = 51345110
+ path = "risk"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/risk"
},
+ {
+ auto_devops_enabled = false
+ avatar_url = ""
+ created_at = "2023-01-11T18:12:06Z"
+ default_branch_protection = 2
+ description = ""
+ emails_disabled = false
+ file_template_project_id = 0
+ full_name = "arendelle / sdlc-eng"
+ full_path = "arendelle/sdlc-eng"
+ group_id = 62393112
+ ip_restriction_ranges = ""
+ lfs_enabled = true
+ mentions_disabled = false
+ name = "sdlc-eng"
+ parent_id = 51345110
+ path = "sdlc-eng"
+ project_creation_level = "developer"
+ request_access_enabled = true
+ require_two_factor_authentication = false
+ share_with_group_lock = true
+ statistics = {}
+ subgroup_creation_level = "maintainer"
+ two_factor_grace_period = 48
+ visibility = "private"
+ web_url = "https://gitlab.com/groups/arendelle/sdlc-eng"
},
]
+ with_custom_attributes = null
}
Additional Details
- GitLab Terraform Provider Version:
15.8.0 - GitLab Version:
Hosted - Terraform Version:
registry.gitlab.com/gitlab-org/terraform-images/stable:latest