1. Packages
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. TeamRoleAssignment

This provider is currently in preview.

Viewing docs for Pulumi Cloud v0.39.0
published on Tuesday, Apr 28, 2026 by Pulumi
pulumiservice logo

This provider is currently in preview.

Viewing docs for Pulumi Cloud v0.39.0
published on Tuesday, Apr 28, 2026 by Pulumi

    Assigns a custom (fine-grained) role to a Pulumi Cloud team. The Pulumi Cloud API currently supports one role per team; creating a second assignment replaces the first. The team’s organization must already have the custom-roles feature enabled.

    Create TeamRoleAssignment Resource

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

    Constructor syntax

    new TeamRoleAssignment(name: string, args: TeamRoleAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def TeamRoleAssignment(resource_name: str,
                           args: TeamRoleAssignmentArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeamRoleAssignment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           organization_name: Optional[str] = None,
                           role_id: Optional[str] = None,
                           team_name: Optional[str] = None)
    func NewTeamRoleAssignment(ctx *Context, name string, args TeamRoleAssignmentArgs, opts ...ResourceOption) (*TeamRoleAssignment, error)
    public TeamRoleAssignment(string name, TeamRoleAssignmentArgs args, CustomResourceOptions? opts = null)
    public TeamRoleAssignment(String name, TeamRoleAssignmentArgs args)
    public TeamRoleAssignment(String name, TeamRoleAssignmentArgs args, CustomResourceOptions options)
    
    type: pulumiservice:TeamRoleAssignment
    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 TeamRoleAssignmentArgs
    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 TeamRoleAssignmentArgs
    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 TeamRoleAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamRoleAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamRoleAssignmentArgs
    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 teamRoleAssignmentResource = new PulumiService.TeamRoleAssignment("teamRoleAssignmentResource", new()
    {
        OrganizationName = "string",
        RoleId = "string",
        TeamName = "string",
    });
    
    example, err := pulumiservice.NewTeamRoleAssignment(ctx, "teamRoleAssignmentResource", &pulumiservice.TeamRoleAssignmentArgs{
    	OrganizationName: pulumi.String("string"),
    	RoleId:           pulumi.String("string"),
    	TeamName:         pulumi.String("string"),
    })
    
    var teamRoleAssignmentResource = new TeamRoleAssignment("teamRoleAssignmentResource", TeamRoleAssignmentArgs.builder()
        .organizationName("string")
        .roleId("string")
        .teamName("string")
        .build());
    
    team_role_assignment_resource = pulumiservice.TeamRoleAssignment("teamRoleAssignmentResource",
        organization_name="string",
        role_id="string",
        team_name="string")
    
    const teamRoleAssignmentResource = new pulumiservice.TeamRoleAssignment("teamRoleAssignmentResource", {
        organizationName: "string",
        roleId: "string",
        teamName: "string",
    });
    
    type: pulumiservice:TeamRoleAssignment
    properties:
        organizationName: string
        roleId: string
        teamName: string
    

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

    OrganizationName string
    The Pulumi Cloud organization name.
    RoleId string
    The ID of the custom role to assign.
    TeamName string
    The team name.
    OrganizationName string
    The Pulumi Cloud organization name.
    RoleId string
    The ID of the custom role to assign.
    TeamName string
    The team name.
    organizationName String
    The Pulumi Cloud organization name.
    roleId String
    The ID of the custom role to assign.
    teamName String
    The team name.
    organizationName string
    The Pulumi Cloud organization name.
    roleId string
    The ID of the custom role to assign.
    teamName string
    The team name.
    organization_name str
    The Pulumi Cloud organization name.
    role_id str
    The ID of the custom role to assign.
    team_name str
    The team name.
    organizationName String
    The Pulumi Cloud organization name.
    roleId String
    The ID of the custom role to assign.
    teamName String
    The team name.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RoleName string
    The name of the currently assigned role (custom role name, or built-in role).
    Id string
    The provider-assigned unique ID for this managed resource.
    RoleName string
    The name of the currently assigned role (custom role name, or built-in role).
    id String
    The provider-assigned unique ID for this managed resource.
    roleName String
    The name of the currently assigned role (custom role name, or built-in role).
    id string
    The provider-assigned unique ID for this managed resource.
    roleName string
    The name of the currently assigned role (custom role name, or built-in role).
    id str
    The provider-assigned unique ID for this managed resource.
    role_name str
    The name of the currently assigned role (custom role name, or built-in role).
    id String
    The provider-assigned unique ID for this managed resource.
    roleName String
    The name of the currently assigned role (custom role name, or built-in role).

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo

    This provider is currently in preview.

    Viewing docs for Pulumi Cloud v0.39.0
    published on Tuesday, Apr 28, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.