1. Packages
  2. Vercel Provider
  3. API Docs
  4. getTeamMember
Vercel v3.2.1 published on Wednesday, May 14, 2025 by Pulumiverse

vercel.getTeamMember

Explore with Pulumi AI

vercel logo
Vercel v3.2.1 published on Wednesday, May 14, 2025 by Pulumiverse

    Provider a datasource for managing a team member.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vercel from "@pulumi/vercel";
    
    const example = vercel.getTeamMember({
        userId: "uuuuuuuuuuuuuuuuuuuuuuuuuu",
        teamId: "team_xxxxxxxxxxxxxxxxxxxxxxxx",
    });
    
    import pulumi
    import pulumi_vercel as vercel
    
    example = vercel.get_team_member(user_id="uuuuuuuuuuuuuuuuuuuuuuuuuu",
        team_id="team_xxxxxxxxxxxxxxxxxxxxxxxx")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-vercel/sdk/v3/go/vercel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vercel.LookupTeamMember(ctx, &vercel.LookupTeamMemberArgs{
    			UserId: "uuuuuuuuuuuuuuuuuuuuuuuuuu",
    			TeamId: "team_xxxxxxxxxxxxxxxxxxxxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vercel = Pulumi.Vercel;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Vercel.GetTeamMember.Invoke(new()
        {
            UserId = "uuuuuuuuuuuuuuuuuuuuuuuuuu",
            TeamId = "team_xxxxxxxxxxxxxxxxxxxxxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vercel.VercelFunctions;
    import com.pulumi.vercel.inputs.GetTeamMemberArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            final var example = VercelFunctions.getTeamMember(GetTeamMemberArgs.builder()
                .userId("uuuuuuuuuuuuuuuuuuuuuuuuuu")
                .teamId("team_xxxxxxxxxxxxxxxxxxxxxxxx")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: vercel:getTeamMember
          Arguments:
            userId: uuuuuuuuuuuuuuuuuuuuuuuuuu
            teamId: team_xxxxxxxxxxxxxxxxxxxxxxxx
    

    Using getTeamMember

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTeamMember(args: GetTeamMemberArgs, opts?: InvokeOptions): Promise<GetTeamMemberResult>
    function getTeamMemberOutput(args: GetTeamMemberOutputArgs, opts?: InvokeOptions): Output<GetTeamMemberResult>
    def get_team_member(team_id: Optional[str] = None,
                        user_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetTeamMemberResult
    def get_team_member_output(team_id: Optional[pulumi.Input[str]] = None,
                        user_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetTeamMemberResult]
    func LookupTeamMember(ctx *Context, args *LookupTeamMemberArgs, opts ...InvokeOption) (*LookupTeamMemberResult, error)
    func LookupTeamMemberOutput(ctx *Context, args *LookupTeamMemberOutputArgs, opts ...InvokeOption) LookupTeamMemberResultOutput

    > Note: This function is named LookupTeamMember in the Go SDK.

    public static class GetTeamMember 
    {
        public static Task<GetTeamMemberResult> InvokeAsync(GetTeamMemberArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamMemberResult> Invoke(GetTeamMemberInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeamMemberResult> getTeamMember(GetTeamMemberArgs args, InvokeOptions options)
    public static Output<GetTeamMemberResult> getTeamMember(GetTeamMemberArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vercel:index/getTeamMember:getTeamMember
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TeamId string
    The ID of the existing Vercel Team.
    UserId string
    The ID of the existing Vercel Team Member.
    TeamId string
    The ID of the existing Vercel Team.
    UserId string
    The ID of the existing Vercel Team Member.
    teamId String
    The ID of the existing Vercel Team.
    userId String
    The ID of the existing Vercel Team Member.
    teamId string
    The ID of the existing Vercel Team.
    userId string
    The ID of the existing Vercel Team Member.
    team_id str
    The ID of the existing Vercel Team.
    user_id str
    The ID of the existing Vercel Team Member.
    teamId String
    The ID of the existing Vercel Team.
    userId String
    The ID of the existing Vercel Team Member.

    getTeamMember Result

    The following output properties are available:

    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.
    Email string
    The email address of the existing Vercel Team Member.
    Id string
    The ID of this resource.
    Projects List<Pulumiverse.Vercel.Outputs.GetTeamMemberProject>
    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 existing Vercel Team Member.
    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.
    Email string
    The email address of the existing Vercel Team Member.
    Id string
    The ID of this resource.
    Projects []GetTeamMemberProject
    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 existing Vercel Team Member.
    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.
    email String
    The email address of the existing Vercel Team Member.
    id String
    The ID of this resource.
    projects List<GetTeamMemberProject>
    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 existing Vercel Team Member.
    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.
    email string
    The email address of the existing Vercel Team Member.
    id string
    The ID of this resource.
    projects GetTeamMemberProject[]
    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 existing Vercel Team Member.
    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.
    email str
    The email address of the existing Vercel Team Member.
    id str
    The ID of this resource.
    projects Sequence[GetTeamMemberProject]
    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 existing Vercel Team Member.
    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.
    email String
    The email address of the existing Vercel Team Member.
    id String
    The ID of this resource.
    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 existing Vercel Team Member.

    Supporting Types

    GetTeamMemberProject

    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 v3.2.1 published on Wednesday, May 14, 2025 by Pulumiverse