1. Packages
  2. Gitlab Provider
  3. API Docs
  4. MemberRole
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

gitlab.MemberRole

Explore with Pulumi AI

The gitlab.MemberRole resource allows to manage the lifecycle of a custom member role.

Custom roles allow an organization to create user roles with the precise privileges and permissions required for that organization’s needs.

This resource requires an Ultimate license.

Most custom roles are considered billable users that use a seat. Custom roles billing and seat usage

There can be only 10 custom roles on your instance or namespace. See issue 450929 for more details.

Upstream API: GitLab GraphQL API docs

Create MemberRole Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new MemberRole(name: string, args: MemberRoleArgs, opts?: CustomResourceOptions);
@overload
def MemberRole(resource_name: str,
               args: MemberRoleArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def MemberRole(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               base_access_level: Optional[str] = None,
               enabled_permissions: Optional[Sequence[str]] = None,
               description: Optional[str] = None,
               group_path: Optional[str] = None,
               name: Optional[str] = None)
func NewMemberRole(ctx *Context, name string, args MemberRoleArgs, opts ...ResourceOption) (*MemberRole, error)
public MemberRole(string name, MemberRoleArgs args, CustomResourceOptions? opts = null)
public MemberRole(String name, MemberRoleArgs args)
public MemberRole(String name, MemberRoleArgs args, CustomResourceOptions options)
type: gitlab:MemberRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MemberRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MemberRoleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MemberRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MemberRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MemberRoleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var memberRoleResource = new GitLab.MemberRole("memberRoleResource", new()
{
    BaseAccessLevel = "string",
    EnabledPermissions = new[]
    {
        "string",
    },
    Description = "string",
    GroupPath = "string",
    Name = "string",
});
Copy
example, err := gitlab.NewMemberRole(ctx, "memberRoleResource", &gitlab.MemberRoleArgs{
	BaseAccessLevel: pulumi.String("string"),
	EnabledPermissions: pulumi.StringArray{
		pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	GroupPath:   pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var memberRoleResource = new MemberRole("memberRoleResource", MemberRoleArgs.builder()
    .baseAccessLevel("string")
    .enabledPermissions("string")
    .description("string")
    .groupPath("string")
    .name("string")
    .build());
Copy
member_role_resource = gitlab.MemberRole("memberRoleResource",
    base_access_level="string",
    enabled_permissions=["string"],
    description="string",
    group_path="string",
    name="string")
Copy
const memberRoleResource = new gitlab.MemberRole("memberRoleResource", {
    baseAccessLevel: "string",
    enabledPermissions: ["string"],
    description: "string",
    groupPath: "string",
    name: "string",
});
Copy
type: gitlab:MemberRole
properties:
    baseAccessLevel: string
    description: string
    enabledPermissions:
        - string
    groupPath: string
    name: string
Copy

MemberRole Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The MemberRole resource accepts the following input properties:

BaseAccessLevel This property is required. string
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
EnabledPermissions This property is required. List<string>
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
Description string
Description for the member role.
GroupPath string
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
Name string
Name for the member role.
BaseAccessLevel This property is required. string
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
EnabledPermissions This property is required. []string
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
Description string
Description for the member role.
GroupPath string
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
Name string
Name for the member role.
baseAccessLevel This property is required. String
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
enabledPermissions This property is required. List<String>
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
description String
Description for the member role.
groupPath String
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
name String
Name for the member role.
baseAccessLevel This property is required. string
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
enabledPermissions This property is required. string[]
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
description string
Description for the member role.
groupPath string
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
name string
Name for the member role.
base_access_level This property is required. str
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
enabled_permissions This property is required. Sequence[str]
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
description str
Description for the member role.
group_path str
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
name str
Name for the member role.
baseAccessLevel This property is required. String
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
enabledPermissions This property is required. List<String>
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
description String
Description for the member role.
groupPath String
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
name String
Name for the member role.

Outputs

All input properties are implicitly available as output properties. Additionally, the MemberRole resource produces the following output properties:

CreatedAt string
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
EditPath string
The Web UI path to edit the member role
Id string
The provider-assigned unique ID for this managed resource.
Iid int
The id integer value extracted from the id attribute
CreatedAt string
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
EditPath string
The Web UI path to edit the member role
Id string
The provider-assigned unique ID for this managed resource.
Iid int
The id integer value extracted from the id attribute
createdAt String
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
editPath String
The Web UI path to edit the member role
id String
The provider-assigned unique ID for this managed resource.
iid Integer
The id integer value extracted from the id attribute
createdAt string
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
editPath string
The Web UI path to edit the member role
id string
The provider-assigned unique ID for this managed resource.
iid number
The id integer value extracted from the id attribute
created_at str
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
edit_path str
The Web UI path to edit the member role
id str
The provider-assigned unique ID for this managed resource.
iid int
The id integer value extracted from the id attribute
createdAt String
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
editPath String
The Web UI path to edit the member role
id String
The provider-assigned unique ID for this managed resource.
iid Number
The id integer value extracted from the id attribute

Look up Existing MemberRole Resource

Get an existing MemberRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: MemberRoleState, opts?: CustomResourceOptions): MemberRole
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        base_access_level: Optional[str] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        edit_path: Optional[str] = None,
        enabled_permissions: Optional[Sequence[str]] = None,
        group_path: Optional[str] = None,
        iid: Optional[int] = None,
        name: Optional[str] = None) -> MemberRole
func GetMemberRole(ctx *Context, name string, id IDInput, state *MemberRoleState, opts ...ResourceOption) (*MemberRole, error)
public static MemberRole Get(string name, Input<string> id, MemberRoleState? state, CustomResourceOptions? opts = null)
public static MemberRole get(String name, Output<String> id, MemberRoleState state, CustomResourceOptions options)
resources:  _:    type: gitlab:MemberRole    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BaseAccessLevel string
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
CreatedAt string
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
Description string
Description for the member role.
EditPath string
The Web UI path to edit the member role
EnabledPermissions List<string>
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
GroupPath string
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
Iid int
The id integer value extracted from the id attribute
Name string
Name for the member role.
BaseAccessLevel string
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
CreatedAt string
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
Description string
Description for the member role.
EditPath string
The Web UI path to edit the member role
EnabledPermissions []string
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
GroupPath string
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
Iid int
The id integer value extracted from the id attribute
Name string
Name for the member role.
baseAccessLevel String
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
createdAt String
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
description String
Description for the member role.
editPath String
The Web UI path to edit the member role
enabledPermissions List<String>
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
groupPath String
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
iid Integer
The id integer value extracted from the id attribute
name String
Name for the member role.
baseAccessLevel string
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
createdAt string
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
description string
Description for the member role.
editPath string
The Web UI path to edit the member role
enabledPermissions string[]
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
groupPath string
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
iid number
The id integer value extracted from the id attribute
name string
Name for the member role.
base_access_level str
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
created_at str
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
description str
Description for the member role.
edit_path str
The Web UI path to edit the member role
enabled_permissions Sequence[str]
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
group_path str
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
iid int
The id integer value extracted from the id attribute
name str
Name for the member role.
baseAccessLevel String
The base access level for the custom role. Valid values are: DEVELOPER, GUEST, MAINTAINER, MINIMAL_ACCESS, OWNER, REPORTER
createdAt String
Timestamp of when the member role was created. Only available with GitLab version 17.3 or higher.
description String
Description for the member role.
editPath String
The Web UI path to edit the member role
enabledPermissions List<String>
All permissions enabled for the custom role. Valid values are: ADMIN_CICD_VARIABLES, ADMIN_COMPLIANCE_FRAMEWORK, ADMIN_GROUP_MEMBER, ADMIN_INTEGRATIONS, ADMIN_MERGE_REQUEST, ADMIN_PROTECTED_BRANCH, ADMIN_PUSH_RULES, ADMIN_RUNNERS, ADMIN_TERRAFORM_STATE, ADMIN_VULNERABILITY, ADMIN_WEB_HOOK, ARCHIVE_PROJECT, MANAGE_DEPLOY_TOKENS, MANAGE_GROUP_ACCESS_TOKENS, MANAGE_MERGE_REQUEST_SETTINGS, MANAGE_PROJECT_ACCESS_TOKENS, MANAGE_SECURITY_POLICY_LINK, READ_ADMIN_CICD, READ_ADMIN_DASHBOARD, READ_CODE, READ_COMPLIANCE_DASHBOARD, READ_CRM_CONTACT, READ_DEPENDENCY, READ_RUNNERS, READ_VULNERABILITY, REMOVE_GROUP, REMOVE_PROJECT
groupPath String
Full path of the namespace to create the member role in. Required for SAAS Not allowed for self-managed
iid Number
The id integer value extracted from the id attribute
name String
Name for the member role.

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_member_role. For example:

terraform

import {

to = gitlab_member_role.example

id = “see CLI command below for ID”

}

Import using the CLI is supported using the following syntax:

GitLab member role can be imported using the id made up of gid://gitlab/MemberRole/<ID> e.g.

$ pulumi import gitlab:index/memberRole:MemberRole example 'gid://gitlab/MemberRole/123'
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
GitLab pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.