1. Packages
  2. Vercel
  3. API Docs
  4. TeamMember
Vercel v1.15.0 published on Wednesday, Mar 19, 2025 by Pulumiverse

vercel.TeamMember

Explore with Pulumi AI

vercel logo
Vercel v1.15.0 published on Wednesday, Mar 19, 2025 by Pulumiverse

    Create TeamMember Resource

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

    Constructor syntax

    new TeamMember(name: string, args: TeamMemberArgs, opts?: CustomResourceOptions);
    @overload
    def TeamMember(resource_name: str,
                   args: TeamMemberArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeamMember(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   role: Optional[str] = None,
                   team_id: Optional[str] = None,
                   user_id: Optional[str] = None,
                   access_groups: Optional[Sequence[str]] = None,
                   projects: Optional[Sequence[TeamMemberProjectArgs]] = None)
    func NewTeamMember(ctx *Context, name string, args TeamMemberArgs, opts ...ResourceOption) (*TeamMember, error)
    public TeamMember(string name, TeamMemberArgs args, CustomResourceOptions? opts = null)
    public TeamMember(String name, TeamMemberArgs args)
    public TeamMember(String name, TeamMemberArgs args, CustomResourceOptions options)
    
    type: vercel:TeamMember
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TeamMemberArgs
    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 TeamMemberArgs
    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 TeamMemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamMemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamMemberArgs
    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 teamMemberResource = new Vercel.TeamMember("teamMemberResource", new()
    {
        Role = "string",
        TeamId = "string",
        UserId = "string",
        AccessGroups = new[]
        {
            "string",
        },
        Projects = new[]
        {
            new Vercel.Inputs.TeamMemberProjectArgs
            {
                ProjectId = "string",
                Role = "string",
            },
        },
    });
    
    example, err := vercel.NewTeamMember(ctx, "teamMemberResource", &vercel.TeamMemberArgs{
    	Role:   pulumi.String("string"),
    	TeamId: pulumi.String("string"),
    	UserId: pulumi.String("string"),
    	AccessGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Projects: vercel.TeamMemberProjectArray{
    		&vercel.TeamMemberProjectArgs{
    			ProjectId: pulumi.String("string"),
    			Role:      pulumi.String("string"),
    		},
    	},
    })
    
    var teamMemberResource = new TeamMember("teamMemberResource", TeamMemberArgs.builder()
        .role("string")
        .teamId("string")
        .userId("string")
        .accessGroups("string")
        .projects(TeamMemberProjectArgs.builder()
            .projectId("string")
            .role("string")
            .build())
        .build());
    
    team_member_resource = vercel.TeamMember("teamMemberResource",
        role="string",
        team_id="string",
        user_id="string",
        access_groups=["string"],
        projects=[{
            "project_id": "string",
            "role": "string",
        }])
    
    const teamMemberResource = new vercel.TeamMember("teamMemberResource", {
        role: "string",
        teamId: "string",
        userId: "string",
        accessGroups: ["string"],
        projects: [{
            projectId: "string",
            role: "string",
        }],
    });
    
    type: vercel:TeamMember
    properties:
        accessGroups:
            - string
        projects:
            - projectId: string
              role: string
        role: string
        teamId: string
        userId: string
    

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

    Role string
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    TeamId string
    The ID of the existing Vercel Team.
    UserId string
    The ID of the user to add to the team.
    AccessGroups List<string>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    Projects List<Pulumiverse.Vercel.Inputs.TeamMemberProject>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    Role string
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    TeamId string
    The ID of the existing Vercel Team.
    UserId string
    The ID of the user to add to the team.
    AccessGroups []string
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    Projects []TeamMemberProjectArgs
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role String
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    teamId String
    The ID of the existing Vercel Team.
    userId String
    The ID of the user to add to the team.
    accessGroups List<String>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects List<TeamMemberProject>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role string
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    teamId string
    The ID of the existing Vercel Team.
    userId string
    The ID of the user to add to the team.
    accessGroups string[]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects TeamMemberProject[]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role str
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    team_id str
    The ID of the existing Vercel Team.
    user_id str
    The ID of the user to add to the team.
    access_groups Sequence[str]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects Sequence[TeamMemberProjectArgs]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role String
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    teamId String
    The ID of the existing Vercel Team.
    userId String
    The ID of the user to add to the team.
    accessGroups List<String>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects List<Property Map>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TeamMember Resource

    Get an existing TeamMember 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?: TeamMemberState, opts?: CustomResourceOptions): TeamMember
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_groups: Optional[Sequence[str]] = None,
            projects: Optional[Sequence[TeamMemberProjectArgs]] = None,
            role: Optional[str] = None,
            team_id: Optional[str] = None,
            user_id: Optional[str] = None) -> TeamMember
    func GetTeamMember(ctx *Context, name string, id IDInput, state *TeamMemberState, opts ...ResourceOption) (*TeamMember, error)
    public static TeamMember Get(string name, Input<string> id, TeamMemberState? state, CustomResourceOptions? opts = null)
    public static TeamMember get(String name, Output<String> id, TeamMemberState state, CustomResourceOptions options)
    resources:  _:    type: vercel:TeamMember    get:      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:
    AccessGroups List<string>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    Projects List<Pulumiverse.Vercel.Inputs.TeamMemberProject>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    Role string
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    TeamId string
    The ID of the existing Vercel Team.
    UserId string
    The ID of the user to add to the team.
    AccessGroups []string
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    Projects []TeamMemberProjectArgs
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    Role string
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    TeamId string
    The ID of the existing Vercel Team.
    UserId string
    The ID of the user to add to the team.
    accessGroups List<String>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects List<TeamMemberProject>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role String
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    teamId String
    The ID of the existing Vercel Team.
    userId String
    The ID of the user to add to the team.
    accessGroups string[]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects TeamMemberProject[]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role string
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    teamId string
    The ID of the existing Vercel Team.
    userId string
    The ID of the user to add to the team.
    access_groups Sequence[str]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects Sequence[TeamMemberProjectArgs]
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role str
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    team_id str
    The ID of the existing Vercel Team.
    user_id str
    The ID of the user to add to the team.
    accessGroups List<String>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of access groups IDs that the user should be granted access to.
    projects List<Property Map>
    If access groups are enabled on the team, and the user is a CONTRIBUTOR, projects, access_groups or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
    role String
    The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
    teamId String
    The ID of the existing Vercel Team.
    userId String
    The ID of the user to add to the team.

    Supporting Types

    TeamMemberProject, TeamMemberProjectArgs

    ProjectId string
    The ID of the project that the user should be granted access to.
    Role string
    The role that the user should have in the project.
    ProjectId string
    The ID of the project that the user should be granted access to.
    Role string
    The role that the user should have in the project.
    projectId String
    The ID of the project that the user should be granted access to.
    role String
    The role that the user should have in the project.
    projectId string
    The ID of the project that the user should be granted access to.
    role string
    The role that the user should have in the project.
    project_id str
    The ID of the project that the user should be granted access to.
    role str
    The role that the user should have in the project.
    projectId String
    The ID of the project that the user should be granted access to.
    role String
    The role that the user should have in the project.

    Package Details

    Repository
    vercel pulumiverse/pulumi-vercel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vercel Terraform Provider.
    vercel logo
    Vercel v1.15.0 published on Wednesday, Mar 19, 2025 by Pulumiverse