1. Registry
  2. Packages
  3. Gitlab Provider
  4. API Docs
  5. ProjectFeatureFlagUserList
Viewing docs for GitLab v10.2.0
published on Wednesday, Aug 26, 2026 by Pulumi
gitlab logo
Viewing docs for GitLab v10.2.0
published on Wednesday, Aug 26, 2026 by Pulumi

    The gitlab.ProjectFeatureFlagUserList resource manages the lifecycle of a project-level feature flag user list.

    User lists let you target a fixed set of users (by external ID) with a feature flag strategy, instead of a percentage-based rollout. Assign a list to a flag’s gitlabUserList strategy from the GitLab UI or API; that binding isn’t managed by this resource (see gitlab.ProjectFeatureFlag for why).

    Upstream API: GitLab REST API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const example = new gitlab.Project("example", {
        name: "example",
        visibilityLevel: "private",
    });
    const exampleProjectFeatureFlagUserList = new gitlab.ProjectFeatureFlagUserList("example", {
        project: example.id,
        name: "beta_testers",
        userXids: "user1,user2,user3",
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    example = gitlab.Project("example",
        name="example",
        visibility_level="private")
    example_project_feature_flag_user_list = gitlab.ProjectFeatureFlagUserList("example",
        project=example.id,
        name="beta_testers",
        user_xids="user1,user2,user3")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v10/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := gitlab.NewProject(ctx, "example", &gitlab.ProjectArgs{
    			Name:            pulumi.String("example"),
    			VisibilityLevel: pulumi.String("private"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gitlab.NewProjectFeatureFlagUserList(ctx, "example", &gitlab.ProjectFeatureFlagUserListArgs{
    			Project:  example.ID().ToIDOutput().ToStringOutput(),
    			Name:     pulumi.String("beta_testers"),
    			UserXids: pulumi.String("user1,user2,user3"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using GitLab = Pulumi.GitLab;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new GitLab.Project("example", new()
        {
            Name = "example",
            VisibilityLevel = "private",
        });
    
        var exampleProjectFeatureFlagUserList = new GitLab.ProjectFeatureFlagUserList("example", new()
        {
            Project = example.Id,
            Name = "beta_testers",
            UserXids = "user1,user2,user3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.Project;
    import com.pulumi.gitlab.ProjectArgs;
    import com.pulumi.gitlab.ProjectFeatureFlagUserList;
    import com.pulumi.gitlab.ProjectFeatureFlagUserListArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Project("example", ProjectArgs.builder()
                .name("example")
                .visibilityLevel("private")
                .build());
    
            var exampleProjectFeatureFlagUserList = new ProjectFeatureFlagUserList("exampleProjectFeatureFlagUserList", ProjectFeatureFlagUserListArgs.builder()
                .project(example.id())
                .name("beta_testers")
                .userXids("user1,user2,user3")
                .build());
    
        }
    }
    
    resources:
      example:
        type: gitlab:Project
        properties:
          name: example
          visibilityLevel: private
      exampleProjectFeatureFlagUserList:
        type: gitlab:ProjectFeatureFlagUserList
        name: example
        properties:
          project: ${example.id}
          name: beta_testers
          userXids: user1,user2,user3
    
    pulumi {
      required_providers {
        gitlab = {
          source = "pulumi/gitlab"
        }
      }
    }
    
    resource "gitlab_project" "example" {
      name             = "example"
      visibility_level = "private"
    }
    resource "gitlab_projectfeatureflaguserlist" "example" {
      project   = gitlab_project.example.id
      name      = "beta_testers"
      user_xids = "user1,user2,user3"
    }
    

    Create ProjectFeatureFlagUserList Resource

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

    Constructor syntax

    new ProjectFeatureFlagUserList(name: string, args: ProjectFeatureFlagUserListArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectFeatureFlagUserList(resource_name: str,
                                   args: ProjectFeatureFlagUserListArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectFeatureFlagUserList(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   project: Optional[str] = None,
                                   name: Optional[str] = None,
                                   user_xids: Optional[str] = None)
    func NewProjectFeatureFlagUserList(ctx *Context, name string, args ProjectFeatureFlagUserListArgs, opts ...ResourceOption) (*ProjectFeatureFlagUserList, error)
    public ProjectFeatureFlagUserList(string name, ProjectFeatureFlagUserListArgs args, CustomResourceOptions? opts = null)
    public ProjectFeatureFlagUserList(String name, ProjectFeatureFlagUserListArgs args)
    public ProjectFeatureFlagUserList(String name, ProjectFeatureFlagUserListArgs args, CustomResourceOptions options)
    
    type: gitlab:ProjectFeatureFlagUserList
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gitlab_project_feature_flag_user_list" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ProjectFeatureFlagUserListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectFeatureFlagUserListArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectFeatureFlagUserListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectFeatureFlagUserListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectFeatureFlagUserListArgs
    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 projectFeatureFlagUserListResource = new GitLab.ProjectFeatureFlagUserList("projectFeatureFlagUserListResource", new()
    {
        Project = "string",
        Name = "string",
        UserXids = "string",
    });
    
    example, err := gitlab.NewProjectFeatureFlagUserList(ctx, "projectFeatureFlagUserListResource", &gitlab.ProjectFeatureFlagUserListArgs{
    	Project:  pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	UserXids: pulumi.String("string"),
    })
    
    resource "gitlab_project_feature_flag_user_list" "projectFeatureFlagUserListResource" {
      lifecycle {
        create_before_destroy = true
      }
      project   = "string"
      name      = "string"
      user_xids = "string"
    }
    
    var projectFeatureFlagUserListResource = new ProjectFeatureFlagUserList("projectFeatureFlagUserListResource", ProjectFeatureFlagUserListArgs.builder()
        .project("string")
        .name("string")
        .userXids("string")
        .build());
    
    project_feature_flag_user_list_resource = gitlab.ProjectFeatureFlagUserList("projectFeatureFlagUserListResource",
        project="string",
        name="string",
        user_xids="string")
    
    const projectFeatureFlagUserListResource = new gitlab.ProjectFeatureFlagUserList("projectFeatureFlagUserListResource", {
        project: "string",
        name: "string",
        userXids: "string",
    });
    
    type: gitlab:ProjectFeatureFlagUserList
    properties:
        name: string
        project: string
        userXids: string
    

    ProjectFeatureFlagUserList 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 ProjectFeatureFlagUserList resource accepts the following input properties:

    Project string
    The ID or URL-encoded path of the project.
    Name string
    The name of the user list.
    UserXids string
    A comma-separated list of external user IDs.
    Project string
    The ID or URL-encoded path of the project.
    Name string
    The name of the user list.
    UserXids string
    A comma-separated list of external user IDs.
    project string
    The ID or URL-encoded path of the project.
    name string
    The name of the user list.
    user_xids string
    A comma-separated list of external user IDs.
    project String
    The ID or URL-encoded path of the project.
    name String
    The name of the user list.
    userXids String
    A comma-separated list of external user IDs.
    project string
    The ID or URL-encoded path of the project.
    name string
    The name of the user list.
    userXids string
    A comma-separated list of external user IDs.
    project str
    The ID or URL-encoded path of the project.
    name str
    The name of the user list.
    user_xids str
    A comma-separated list of external user IDs.
    project String
    The ID or URL-encoded path of the project.
    name String
    The name of the user list.
    userXids String
    A comma-separated list of external user IDs.

    Outputs

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

    CreatedAt string
    The date and time the user list was created, in ISO 8601 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Iid int
    The internal ID of the user list, assigned by GitLab.
    ListId int
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    UpdatedAt string
    The date and time the user list was last updated, in ISO 8601 format.
    CreatedAt string
    The date and time the user list was created, in ISO 8601 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Iid int
    The internal ID of the user list, assigned by GitLab.
    ListId int
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    UpdatedAt string
    The date and time the user list was last updated, in ISO 8601 format.
    created_at string
    The date and time the user list was created, in ISO 8601 format.
    id string
    The provider-assigned unique ID for this managed resource.
    iid number
    The internal ID of the user list, assigned by GitLab.
    list_id number
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    updated_at string
    The date and time the user list was last updated, in ISO 8601 format.
    createdAt String
    The date and time the user list was created, in ISO 8601 format.
    id String
    The provider-assigned unique ID for this managed resource.
    iid Integer
    The internal ID of the user list, assigned by GitLab.
    listId Integer
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    updatedAt String
    The date and time the user list was last updated, in ISO 8601 format.
    createdAt string
    The date and time the user list was created, in ISO 8601 format.
    id string
    The provider-assigned unique ID for this managed resource.
    iid number
    The internal ID of the user list, assigned by GitLab.
    listId number
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    updatedAt string
    The date and time the user list was last updated, in ISO 8601 format.
    created_at str
    The date and time the user list was created, in ISO 8601 format.
    id str
    The provider-assigned unique ID for this managed resource.
    iid int
    The internal ID of the user list, assigned by GitLab.
    list_id int
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    updated_at str
    The date and time the user list was last updated, in ISO 8601 format.
    createdAt String
    The date and time the user list was created, in ISO 8601 format.
    id String
    The provider-assigned unique ID for this managed resource.
    iid Number
    The internal ID of the user list, assigned by GitLab.
    listId Number
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    updatedAt String
    The date and time the user list was last updated, in ISO 8601 format.

    Look up Existing ProjectFeatureFlagUserList Resource

    Get an existing ProjectFeatureFlagUserList 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?: ProjectFeatureFlagUserListState, opts?: CustomResourceOptions): ProjectFeatureFlagUserList
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            iid: Optional[int] = None,
            list_id: Optional[int] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            updated_at: Optional[str] = None,
            user_xids: Optional[str] = None) -> ProjectFeatureFlagUserList
    func GetProjectFeatureFlagUserList(ctx *Context, name string, id IDInput, state *ProjectFeatureFlagUserListState, opts ...ResourceOption) (*ProjectFeatureFlagUserList, error)
    public static ProjectFeatureFlagUserList Get(string name, Input<string> id, ProjectFeatureFlagUserListState? state, CustomResourceOptions? opts = null)
    public static ProjectFeatureFlagUserList get(String name, Output<String> id, ProjectFeatureFlagUserListState state, CustomResourceOptions options)
    resources:  _:    type: gitlab:ProjectFeatureFlagUserList    get:      id: ${id}
    import {
      to = gitlab_project_feature_flag_user_list.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    CreatedAt string
    The date and time the user list was created, in ISO 8601 format.
    Iid int
    The internal ID of the user list, assigned by GitLab.
    ListId int
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    Name string
    The name of the user list.
    Project string
    The ID or URL-encoded path of the project.
    UpdatedAt string
    The date and time the user list was last updated, in ISO 8601 format.
    UserXids string
    A comma-separated list of external user IDs.
    CreatedAt string
    The date and time the user list was created, in ISO 8601 format.
    Iid int
    The internal ID of the user list, assigned by GitLab.
    ListId int
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    Name string
    The name of the user list.
    Project string
    The ID or URL-encoded path of the project.
    UpdatedAt string
    The date and time the user list was last updated, in ISO 8601 format.
    UserXids string
    A comma-separated list of external user IDs.
    created_at string
    The date and time the user list was created, in ISO 8601 format.
    iid number
    The internal ID of the user list, assigned by GitLab.
    list_id number
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    name string
    The name of the user list.
    project string
    The ID or URL-encoded path of the project.
    updated_at string
    The date and time the user list was last updated, in ISO 8601 format.
    user_xids string
    A comma-separated list of external user IDs.
    createdAt String
    The date and time the user list was created, in ISO 8601 format.
    iid Integer
    The internal ID of the user list, assigned by GitLab.
    listId Integer
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    name String
    The name of the user list.
    project String
    The ID or URL-encoded path of the project.
    updatedAt String
    The date and time the user list was last updated, in ISO 8601 format.
    userXids String
    A comma-separated list of external user IDs.
    createdAt string
    The date and time the user list was created, in ISO 8601 format.
    iid number
    The internal ID of the user list, assigned by GitLab.
    listId number
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    name string
    The name of the user list.
    project string
    The ID or URL-encoded path of the project.
    updatedAt string
    The date and time the user list was last updated, in ISO 8601 format.
    userXids string
    A comma-separated list of external user IDs.
    created_at str
    The date and time the user list was created, in ISO 8601 format.
    iid int
    The internal ID of the user list, assigned by GitLab.
    list_id int
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    name str
    The name of the user list.
    project str
    The ID or URL-encoded path of the project.
    updated_at str
    The date and time the user list was last updated, in ISO 8601 format.
    user_xids str
    A comma-separated list of external user IDs.
    createdAt String
    The date and time the user list was created, in ISO 8601 format.
    iid Number
    The internal ID of the user list, assigned by GitLab.
    listId Number
    The ID of the user list, assigned by GitLab. Unlike iid, this is the value expected by a gitlab.ProjectFeatureFlag strategy's userListId attribute to bind this list to a gitlabUserList strategy.
    name String
    The name of the user list.
    project String
    The ID or URL-encoded path of the project.
    updatedAt String
    The date and time the user list was last updated, in ISO 8601 format.
    userXids String
    A comma-separated list of external user IDs.

    Import

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

    Importing using the CLI is supported with the following syntax:

    A GitLab Project Feature Flag User List can be imported using a key composed of <project>:<list-iid>, e.g.

    $ pulumi import gitlab:index/projectFeatureFlagUserList:ProjectFeatureFlagUserList example "12345:1"
    

    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.
    gitlab logo
    Viewing docs for GitLab v10.2.0
    published on Wednesday, Aug 26, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial