Skip to content

When gitlab group is removed, the gitlab API returns a 403

│ Error: GET https://gitlab.example.com/api/v4/groups/9540/ldap_group_links: 403 {message: 403 Forbidden}

│   with module.mymodule["something"].gitlab_group_ldap_link.approvers["Default"],
│   on submodules/group/ldap.tf line 70, in resource "gitlab_group_ldap_link" "approvers":
│   70: resource "gitlab_group_ldap_link" "approvers" {

When it hits this, it fails completely even-though the gitlab_group that it is dependent on will successfully be re-created.

This is making it hard to enforce state on a remote Gitlab instance where someone may have removed the group that the gitlab_group_ldap_link is tied to.