Unsupported permissions in member_role

Not all permissions can be defined through the provider in the gitlab_member_role resource.

It was assigned to a custom role, the base role of Developer, and the following permissions cannot be configured.

Note

Also validated in registry.terraform.io/gitlabhq/gitlab 19.0.0

  • Duo Agent Platform
    • Manage AI catalog items (ADMIN_AI_CATALOG_ITEM)
    • Configure AI catalog items (ADMIN_AI_CATALOG_ITEM_CONSUMER)
  • Security asset inventories
    • Manage security attributes (ADMIN_SECURITY_ATTRIBUTES)
  • Other
    • Apply security scan profiles (APPLY_SECURITY_SCAN_PROFILES)
    • Update SAST Vulnerability Resolution setting (UPDATE_SAST_VULNERABILITY_RESOLUTION_SETTING)

Implementation Guide

  • Follow the CONTRIBUTING.md guide for setting up your local development environment.
  • Clone the community fork of this project.
  • In internal/provider/resource_gitlab_member_role.go, update the slice allowedEnabledPermissions to include any missing permissions from https://docs.gitlab.com/user/custom_roles/abilities/.
  • Update or add a test case to internal/provider/resource_gitlab_member_role_test.go to use the added permissions.
Edited by 🤖 GitLab Bot 🤖