Support creating new custom roles

Support creating new custom roles

New Resource

I'm missing a way for creating custom roles. I'm looking for features that can do something like this:

resource "gitlab_custom_role" "security_reviewer" {
  group_id = 1234
  name = "Security reviewer"
  description = "A person who reviews security incidents and vulnerabilities"
  base_access_level = "Reporter"
  read_vulnerability = true
}

Related GitLab APIs

API documentation:

Additional Details

  • GitLab REST API resources available (read for data sources, crud for resources)
  • go-gitlab does support the related GitLab API already
    • note: it supports my needs but not the full set of options. At a glance go-gitlab supports 4 admin_ while gitlabs current api has 7.
  • I'd like to contribute it myself