1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. User
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

spectrocloud.User

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

    Create and manage projects in Palette.

    You can learn more about managing users in Palette by reviewing the Users guide.

    Example Usage

    An example of creating a user resource with assigned teams and custom roles in Palette.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const user_test = new spectrocloud.User("user-test", {
        firstName: "tf",
        lastName: "test",
        email: "test-tf@spectrocloud.com",
        teamIds: [data.spectrocloud_team.team2.id],
        projectRoles: [
            {
                projectId: data.spectrocloud_project["default"].id,
                roleIds: .map(r => (r.id)),
            },
            {
                projectId: data.spectrocloud_project.ranjith.id,
                roleIds: .map(r => (r.id)),
            },
        ],
        tenantRoles: .map(t => (t.id)),
        workspaceRoles: [{
            projectId: data.spectrocloud_project["default"].id,
            workspaces: [
                {
                    id: data.spectrocloud_workspace.workspace.id,
                    roleIds: .map(w => (w.id)),
                },
                {
                    id: data.spectrocloud_workspace.workspace2.id,
                    roleIds: ["66fbea622947f81fc26983e6"],
                },
            ],
        }],
        resourceRoles: [
            {
                projectIds: [
                    data.spectrocloud_project["default"].id,
                    data.spectrocloud_project.ranjith.id,
                ],
                filterIds: [data.spectrocloud_filter.filter.id],
                roleIds: .map(r => (r.id)),
            },
            {
                projectIds: [data.spectrocloud_project.ranjith.id],
                filterIds: [data.spectrocloud_filter.filter.id],
                roleIds: .map(re => (re.id)),
            },
        ],
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    user_test = spectrocloud.User("user-test",
        first_name="tf",
        last_name="test",
        email="test-tf@spectrocloud.com",
        team_ids=[data["spectrocloud_team"]["team2"]["id"]],
        project_roles=[
            {
                "project_id": data["spectrocloud_project"]["default"]["id"],
                "role_ids": [r["id"] for r in data["spectrocloud_role"]["app_roles"]],
            },
            {
                "project_id": data["spectrocloud_project"]["ranjith"]["id"],
                "role_ids": [r["id"] for r in data["spectrocloud_role"]["app_roles"]],
            },
        ],
        tenant_roles=[t["id"] for t in data["spectrocloud_role"]["tenant_roles"]],
        workspace_roles=[{
            "project_id": data["spectrocloud_project"]["default"]["id"],
            "workspaces": [
                {
                    "id": data["spectrocloud_workspace"]["workspace"]["id"],
                    "role_ids": [w["id"] for w in data["spectrocloud_role"]["workspace_roles"]],
                },
                {
                    "id": data["spectrocloud_workspace"]["workspace2"]["id"],
                    "role_ids": ["66fbea622947f81fc26983e6"],
                },
            ],
        }],
        resource_roles=[
            {
                "project_ids": [
                    data["spectrocloud_project"]["default"]["id"],
                    data["spectrocloud_project"]["ranjith"]["id"],
                ],
                "filter_ids": [data["spectrocloud_filter"]["filter"]["id"]],
                "role_ids": [r["id"] for r in data["spectrocloud_role"]["resource_roles"]],
            },
            {
                "project_ids": [data["spectrocloud_project"]["ranjith"]["id"]],
                "filter_ids": [data["spectrocloud_filter"]["filter"]["id"]],
                "role_ids": [re["id"] for re in data["spectrocloud_role"]["resource_roles_editor"]],
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spectrocloud.NewUser(ctx, "user-test", &spectrocloud.UserArgs{
    			FirstName: pulumi.String("tf"),
    			LastName:  pulumi.String("test"),
    			Email:     pulumi.String("test-tf@spectrocloud.com"),
    			TeamIds: pulumi.StringArray{
    				data.Spectrocloud_team.Team2.Id,
    			},
    			ProjectRoles: spectrocloud.UserProjectRoleArray{
    				&spectrocloud.UserProjectRoleArgs{
    					ProjectId: pulumi.Any(data.Spectrocloud_project.Default.Id),
    					RoleIds:   []pulumi.String("TODO: For expression"),
    				},
    				&spectrocloud.UserProjectRoleArgs{
    					ProjectId: pulumi.Any(data.Spectrocloud_project.Ranjith.Id),
    					RoleIds:   []pulumi.String("TODO: For expression"),
    				},
    			},
    			TenantRoles: []pulumi.String("TODO: For expression"),
    			WorkspaceRoles: spectrocloud.UserWorkspaceRoleArray{
    				&spectrocloud.UserWorkspaceRoleArgs{
    					ProjectId: pulumi.Any(data.Spectrocloud_project.Default.Id),
    					Workspaces: spectrocloud.UserWorkspaceRoleWorkspaceArray{
    						&spectrocloud.UserWorkspaceRoleWorkspaceArgs{
    							Id:      pulumi.Any(data.Spectrocloud_workspace.Workspace.Id),
    							RoleIds: []pulumi.String("TODO: For expression"),
    						},
    						&spectrocloud.UserWorkspaceRoleWorkspaceArgs{
    							Id: pulumi.Any(data.Spectrocloud_workspace.Workspace2.Id),
    							RoleIds: pulumi.StringArray{
    								pulumi.String("66fbea622947f81fc26983e6"),
    							},
    						},
    					},
    				},
    			},
    			ResourceRoles: spectrocloud.UserResourceRoleArray{
    				&spectrocloud.UserResourceRoleArgs{
    					ProjectIds: pulumi.StringArray{
    						data.Spectrocloud_project.Default.Id,
    						data.Spectrocloud_project.Ranjith.Id,
    					},
    					FilterIds: pulumi.StringArray{
    						data.Spectrocloud_filter.Filter.Id,
    					},
    					RoleIds: []pulumi.String("TODO: For expression"),
    				},
    				&spectrocloud.UserResourceRoleArgs{
    					ProjectIds: pulumi.StringArray{
    						data.Spectrocloud_project.Ranjith.Id,
    					},
    					FilterIds: pulumi.StringArray{
    						data.Spectrocloud_filter.Filter.Id,
    					},
    					RoleIds: []pulumi.String("TODO: For expression"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var user_test = new Spectrocloud.User("user-test", new()
        {
            FirstName = "tf",
            LastName = "test",
            Email = "test-tf@spectrocloud.com",
            TeamIds = new[]
            {
                data.Spectrocloud_team.Team2.Id,
            },
            ProjectRoles = new[]
            {
                new Spectrocloud.Inputs.UserProjectRoleArgs
                {
                    ProjectId = data.Spectrocloud_project.Default.Id,
                    RoleIds = .Select(r => 
                    {
                        return r.Id;
                    }).ToList(),
                },
                new Spectrocloud.Inputs.UserProjectRoleArgs
                {
                    ProjectId = data.Spectrocloud_project.Ranjith.Id,
                    RoleIds = .Select(r => 
                    {
                        return r.Id;
                    }).ToList(),
                },
            },
            TenantRoles = .Select(t => 
            {
                return t.Id;
            }).ToList(),
            WorkspaceRoles = new[]
            {
                new Spectrocloud.Inputs.UserWorkspaceRoleArgs
                {
                    ProjectId = data.Spectrocloud_project.Default.Id,
                    Workspaces = new[]
                    {
                        new Spectrocloud.Inputs.UserWorkspaceRoleWorkspaceArgs
                        {
                            Id = data.Spectrocloud_workspace.Workspace.Id,
                            RoleIds = .Select(w => 
                            {
                                return w.Id;
                            }).ToList(),
                        },
                        new Spectrocloud.Inputs.UserWorkspaceRoleWorkspaceArgs
                        {
                            Id = data.Spectrocloud_workspace.Workspace2.Id,
                            RoleIds = new[]
                            {
                                "66fbea622947f81fc26983e6",
                            },
                        },
                    },
                },
            },
            ResourceRoles = new[]
            {
                new Spectrocloud.Inputs.UserResourceRoleArgs
                {
                    ProjectIds = new[]
                    {
                        data.Spectrocloud_project.Default.Id,
                        data.Spectrocloud_project.Ranjith.Id,
                    },
                    FilterIds = new[]
                    {
                        data.Spectrocloud_filter.Filter.Id,
                    },
                    RoleIds = .Select(r => 
                    {
                        return r.Id;
                    }).ToList(),
                },
                new Spectrocloud.Inputs.UserResourceRoleArgs
                {
                    ProjectIds = new[]
                    {
                        data.Spectrocloud_project.Ranjith.Id,
                    },
                    FilterIds = new[]
                    {
                        data.Spectrocloud_filter.Filter.Id,
                    },
                    RoleIds = .Select(re => 
                    {
                        return re.Id;
                    }).ToList(),
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.User;
    import com.pulumi.spectrocloud.UserArgs;
    import com.pulumi.spectrocloud.inputs.UserProjectRoleArgs;
    import com.pulumi.spectrocloud.inputs.UserWorkspaceRoleArgs;
    import com.pulumi.spectrocloud.inputs.UserResourceRoleArgs;
    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) {
            var user_test = new User("user-test", UserArgs.builder()
                .firstName("tf")
                .lastName("test")
                .email("test-tf@spectrocloud.com")
                .teamIds(data.spectrocloud_team().team2().id())
                .projectRoles(            
                    UserProjectRoleArgs.builder()
                        .projectId(data.spectrocloud_project().default().id())
                        .roleIds("TODO: ForExpression")
                        .build(),
                    UserProjectRoleArgs.builder()
                        .projectId(data.spectrocloud_project().ranjith().id())
                        .roleIds("TODO: ForExpression")
                        .build())
                .tenantRoles("TODO: ForExpression")
                .workspaceRoles(UserWorkspaceRoleArgs.builder()
                    .projectId(data.spectrocloud_project().default().id())
                    .workspaces(                
                        UserWorkspaceRoleWorkspaceArgs.builder()
                            .id(data.spectrocloud_workspace().workspace().id())
                            .roleIds("TODO: ForExpression")
                            .build(),
                        UserWorkspaceRoleWorkspaceArgs.builder()
                            .id(data.spectrocloud_workspace().workspace2().id())
                            .roleIds("66fbea622947f81fc26983e6")
                            .build())
                    .build())
                .resourceRoles(            
                    UserResourceRoleArgs.builder()
                        .projectIds(                    
                            data.spectrocloud_project().default().id(),
                            data.spectrocloud_project().ranjith().id())
                        .filterIds(data.spectrocloud_filter().filter().id())
                        .roleIds("TODO: ForExpression")
                        .build(),
                    UserResourceRoleArgs.builder()
                        .projectIds(data.spectrocloud_project().ranjith().id())
                        .filterIds(data.spectrocloud_filter().filter().id())
                        .roleIds("TODO: ForExpression")
                        .build())
                .build());
    
        }
    }
    
    Coming soon!
    

    The example below demonstrates how to create an user with only assigned teams.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const user_test = new spectrocloud.User("user-test", {
        firstName: "tf",
        lastName: "test",
        email: "test-tf@spectrocloud.com",
        teamIds: [data.spectrocloud_team.team2.id],
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    user_test = spectrocloud.User("user-test",
        first_name="tf",
        last_name="test",
        email="test-tf@spectrocloud.com",
        team_ids=[data["spectrocloud_team"]["team2"]["id"]])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spectrocloud.NewUser(ctx, "user-test", &spectrocloud.UserArgs{
    			FirstName: pulumi.String("tf"),
    			LastName:  pulumi.String("test"),
    			Email:     pulumi.String("test-tf@spectrocloud.com"),
    			TeamIds: pulumi.StringArray{
    				data.Spectrocloud_team.Team2.Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var user_test = new Spectrocloud.User("user-test", new()
        {
            FirstName = "tf",
            LastName = "test",
            Email = "test-tf@spectrocloud.com",
            TeamIds = new[]
            {
                data.Spectrocloud_team.Team2.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.User;
    import com.pulumi.spectrocloud.UserArgs;
    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) {
            var user_test = new User("user-test", UserArgs.builder()
                .firstName("tf")
                .lastName("test")
                .email("test-tf@spectrocloud.com")
                .teamIds(data.spectrocloud_team().team2().id())
                .build());
    
        }
    }
    
    resources:
      user-test:
        type: spectrocloud:User
        properties:
          firstName: tf
          lastName: test
          email: test-tf@spectrocloud.com
          teamIds:
            - ${data.spectrocloud_team.team2.id}
    

    Create User Resource

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

    Constructor syntax

    new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
    @overload
    def User(resource_name: str,
             args: UserArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def User(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             email: Optional[str] = None,
             first_name: Optional[str] = None,
             last_name: Optional[str] = None,
             project_roles: Optional[Sequence[UserProjectRoleArgs]] = None,
             resource_roles: Optional[Sequence[UserResourceRoleArgs]] = None,
             team_ids: Optional[Sequence[str]] = None,
             tenant_roles: Optional[Sequence[str]] = None,
             timeouts: Optional[UserTimeoutsArgs] = None,
             user_id: Optional[str] = None,
             workspace_roles: Optional[Sequence[UserWorkspaceRoleArgs]] = None)
    func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
    public User(string name, UserArgs args, CustomResourceOptions? opts = null)
    public User(String name, UserArgs args)
    public User(String name, UserArgs args, CustomResourceOptions options)
    
    type: spectrocloud:User
    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 UserArgs
    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 UserArgs
    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 UserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserArgs
    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 userResource = new Spectrocloud.User("userResource", new()
    {
        Email = "string",
        FirstName = "string",
        LastName = "string",
        ProjectRoles = new[]
        {
            new Spectrocloud.Inputs.UserProjectRoleArgs
            {
                ProjectId = "string",
                RoleIds = new[]
                {
                    "string",
                },
            },
        },
        ResourceRoles = new[]
        {
            new Spectrocloud.Inputs.UserResourceRoleArgs
            {
                FilterIds = new[]
                {
                    "string",
                },
                ProjectIds = new[]
                {
                    "string",
                },
                RoleIds = new[]
                {
                    "string",
                },
            },
        },
        TeamIds = new[]
        {
            "string",
        },
        TenantRoles = new[]
        {
            "string",
        },
        Timeouts = new Spectrocloud.Inputs.UserTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        UserId = "string",
        WorkspaceRoles = new[]
        {
            new Spectrocloud.Inputs.UserWorkspaceRoleArgs
            {
                ProjectId = "string",
                Workspaces = new[]
                {
                    new Spectrocloud.Inputs.UserWorkspaceRoleWorkspaceArgs
                    {
                        Id = "string",
                        RoleIds = new[]
                        {
                            "string",
                        },
                    },
                },
            },
        },
    });
    
    example, err := spectrocloud.NewUser(ctx, "userResource", &spectrocloud.UserArgs{
    	Email:     pulumi.String("string"),
    	FirstName: pulumi.String("string"),
    	LastName:  pulumi.String("string"),
    	ProjectRoles: spectrocloud.UserProjectRoleArray{
    		&spectrocloud.UserProjectRoleArgs{
    			ProjectId: pulumi.String("string"),
    			RoleIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	ResourceRoles: spectrocloud.UserResourceRoleArray{
    		&spectrocloud.UserResourceRoleArgs{
    			FilterIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ProjectIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			RoleIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	TeamIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantRoles: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &spectrocloud.UserTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	UserId: pulumi.String("string"),
    	WorkspaceRoles: spectrocloud.UserWorkspaceRoleArray{
    		&spectrocloud.UserWorkspaceRoleArgs{
    			ProjectId: pulumi.String("string"),
    			Workspaces: spectrocloud.UserWorkspaceRoleWorkspaceArray{
    				&spectrocloud.UserWorkspaceRoleWorkspaceArgs{
    					Id: pulumi.String("string"),
    					RoleIds: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    		},
    	},
    })
    
    var userResource = new User("userResource", UserArgs.builder()
        .email("string")
        .firstName("string")
        .lastName("string")
        .projectRoles(UserProjectRoleArgs.builder()
            .projectId("string")
            .roleIds("string")
            .build())
        .resourceRoles(UserResourceRoleArgs.builder()
            .filterIds("string")
            .projectIds("string")
            .roleIds("string")
            .build())
        .teamIds("string")
        .tenantRoles("string")
        .timeouts(UserTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .userId("string")
        .workspaceRoles(UserWorkspaceRoleArgs.builder()
            .projectId("string")
            .workspaces(UserWorkspaceRoleWorkspaceArgs.builder()
                .id("string")
                .roleIds("string")
                .build())
            .build())
        .build());
    
    user_resource = spectrocloud.User("userResource",
        email="string",
        first_name="string",
        last_name="string",
        project_roles=[{
            "project_id": "string",
            "role_ids": ["string"],
        }],
        resource_roles=[{
            "filter_ids": ["string"],
            "project_ids": ["string"],
            "role_ids": ["string"],
        }],
        team_ids=["string"],
        tenant_roles=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        user_id="string",
        workspace_roles=[{
            "project_id": "string",
            "workspaces": [{
                "id": "string",
                "role_ids": ["string"],
            }],
        }])
    
    const userResource = new spectrocloud.User("userResource", {
        email: "string",
        firstName: "string",
        lastName: "string",
        projectRoles: [{
            projectId: "string",
            roleIds: ["string"],
        }],
        resourceRoles: [{
            filterIds: ["string"],
            projectIds: ["string"],
            roleIds: ["string"],
        }],
        teamIds: ["string"],
        tenantRoles: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        userId: "string",
        workspaceRoles: [{
            projectId: "string",
            workspaces: [{
                id: "string",
                roleIds: ["string"],
            }],
        }],
    });
    
    type: spectrocloud:User
    properties:
        email: string
        firstName: string
        lastName: string
        projectRoles:
            - projectId: string
              roleIds:
                - string
        resourceRoles:
            - filterIds:
                - string
              projectIds:
                - string
              roleIds:
                - string
        teamIds:
            - string
        tenantRoles:
            - string
        timeouts:
            create: string
            delete: string
            update: string
        userId: string
        workspaceRoles:
            - projectId: string
              workspaces:
                - id: string
                  roleIds:
                    - string
    

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

    Email string
    The email of the user.
    FirstName string
    The first name of the user.
    LastName string
    The last name of the user.
    ProjectRoles List<UserProjectRole>
    List of project roles to be associated with the user.
    ResourceRoles List<UserResourceRole>
    TeamIds List<string>
    The team id's assigned to the user.
    TenantRoles List<string>
    List of tenant role ids to be associated with the user.
    Timeouts UserTimeouts
    UserId string
    The ID of this resource.
    WorkspaceRoles List<UserWorkspaceRole>
    List of workspace roles to be associated with the user.
    Email string
    The email of the user.
    FirstName string
    The first name of the user.
    LastName string
    The last name of the user.
    ProjectRoles []UserProjectRoleArgs
    List of project roles to be associated with the user.
    ResourceRoles []UserResourceRoleArgs
    TeamIds []string
    The team id's assigned to the user.
    TenantRoles []string
    List of tenant role ids to be associated with the user.
    Timeouts UserTimeoutsArgs
    UserId string
    The ID of this resource.
    WorkspaceRoles []UserWorkspaceRoleArgs
    List of workspace roles to be associated with the user.
    email String
    The email of the user.
    firstName String
    The first name of the user.
    lastName String
    The last name of the user.
    projectRoles List<UserProjectRole>
    List of project roles to be associated with the user.
    resourceRoles List<UserResourceRole>
    teamIds List<String>
    The team id's assigned to the user.
    tenantRoles List<String>
    List of tenant role ids to be associated with the user.
    timeouts UserTimeouts
    userId String
    The ID of this resource.
    workspaceRoles List<UserWorkspaceRole>
    List of workspace roles to be associated with the user.
    email string
    The email of the user.
    firstName string
    The first name of the user.
    lastName string
    The last name of the user.
    projectRoles UserProjectRole[]
    List of project roles to be associated with the user.
    resourceRoles UserResourceRole[]
    teamIds string[]
    The team id's assigned to the user.
    tenantRoles string[]
    List of tenant role ids to be associated with the user.
    timeouts UserTimeouts
    userId string
    The ID of this resource.
    workspaceRoles UserWorkspaceRole[]
    List of workspace roles to be associated with the user.
    email str
    The email of the user.
    first_name str
    The first name of the user.
    last_name str
    The last name of the user.
    project_roles Sequence[UserProjectRoleArgs]
    List of project roles to be associated with the user.
    resource_roles Sequence[UserResourceRoleArgs]
    team_ids Sequence[str]
    The team id's assigned to the user.
    tenant_roles Sequence[str]
    List of tenant role ids to be associated with the user.
    timeouts UserTimeoutsArgs
    user_id str
    The ID of this resource.
    workspace_roles Sequence[UserWorkspaceRoleArgs]
    List of workspace roles to be associated with the user.
    email String
    The email of the user.
    firstName String
    The first name of the user.
    lastName String
    The last name of the user.
    projectRoles List<Property Map>
    List of project roles to be associated with the user.
    resourceRoles List<Property Map>
    teamIds List<String>
    The team id's assigned to the user.
    tenantRoles List<String>
    List of tenant role ids to be associated with the user.
    timeouts Property Map
    userId String
    The ID of this resource.
    workspaceRoles List<Property Map>
    List of workspace roles to be associated with the user.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the User 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 User Resource

    Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email: Optional[str] = None,
            first_name: Optional[str] = None,
            last_name: Optional[str] = None,
            project_roles: Optional[Sequence[UserProjectRoleArgs]] = None,
            resource_roles: Optional[Sequence[UserResourceRoleArgs]] = None,
            team_ids: Optional[Sequence[str]] = None,
            tenant_roles: Optional[Sequence[str]] = None,
            timeouts: Optional[UserTimeoutsArgs] = None,
            user_id: Optional[str] = None,
            workspace_roles: Optional[Sequence[UserWorkspaceRoleArgs]] = None) -> User
    func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
    public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
    public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
    resources:  _:    type: spectrocloud:User    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:
    Email string
    The email of the user.
    FirstName string
    The first name of the user.
    LastName string
    The last name of the user.
    ProjectRoles List<UserProjectRole>
    List of project roles to be associated with the user.
    ResourceRoles List<UserResourceRole>
    TeamIds List<string>
    The team id's assigned to the user.
    TenantRoles List<string>
    List of tenant role ids to be associated with the user.
    Timeouts UserTimeouts
    UserId string
    The ID of this resource.
    WorkspaceRoles List<UserWorkspaceRole>
    List of workspace roles to be associated with the user.
    Email string
    The email of the user.
    FirstName string
    The first name of the user.
    LastName string
    The last name of the user.
    ProjectRoles []UserProjectRoleArgs
    List of project roles to be associated with the user.
    ResourceRoles []UserResourceRoleArgs
    TeamIds []string
    The team id's assigned to the user.
    TenantRoles []string
    List of tenant role ids to be associated with the user.
    Timeouts UserTimeoutsArgs
    UserId string
    The ID of this resource.
    WorkspaceRoles []UserWorkspaceRoleArgs
    List of workspace roles to be associated with the user.
    email String
    The email of the user.
    firstName String
    The first name of the user.
    lastName String
    The last name of the user.
    projectRoles List<UserProjectRole>
    List of project roles to be associated with the user.
    resourceRoles List<UserResourceRole>
    teamIds List<String>
    The team id's assigned to the user.
    tenantRoles List<String>
    List of tenant role ids to be associated with the user.
    timeouts UserTimeouts
    userId String
    The ID of this resource.
    workspaceRoles List<UserWorkspaceRole>
    List of workspace roles to be associated with the user.
    email string
    The email of the user.
    firstName string
    The first name of the user.
    lastName string
    The last name of the user.
    projectRoles UserProjectRole[]
    List of project roles to be associated with the user.
    resourceRoles UserResourceRole[]
    teamIds string[]
    The team id's assigned to the user.
    tenantRoles string[]
    List of tenant role ids to be associated with the user.
    timeouts UserTimeouts
    userId string
    The ID of this resource.
    workspaceRoles UserWorkspaceRole[]
    List of workspace roles to be associated with the user.
    email str
    The email of the user.
    first_name str
    The first name of the user.
    last_name str
    The last name of the user.
    project_roles Sequence[UserProjectRoleArgs]
    List of project roles to be associated with the user.
    resource_roles Sequence[UserResourceRoleArgs]
    team_ids Sequence[str]
    The team id's assigned to the user.
    tenant_roles Sequence[str]
    List of tenant role ids to be associated with the user.
    timeouts UserTimeoutsArgs
    user_id str
    The ID of this resource.
    workspace_roles Sequence[UserWorkspaceRoleArgs]
    List of workspace roles to be associated with the user.
    email String
    The email of the user.
    firstName String
    The first name of the user.
    lastName String
    The last name of the user.
    projectRoles List<Property Map>
    List of project roles to be associated with the user.
    resourceRoles List<Property Map>
    teamIds List<String>
    The team id's assigned to the user.
    tenantRoles List<String>
    List of tenant role ids to be associated with the user.
    timeouts Property Map
    userId String
    The ID of this resource.
    workspaceRoles List<Property Map>
    List of workspace roles to be associated with the user.

    Supporting Types

    UserProjectRole, UserProjectRoleArgs

    ProjectId string
    Project id to be associated with the user.
    RoleIds List<string>
    List of project role ids to be associated with the user.
    ProjectId string
    Project id to be associated with the user.
    RoleIds []string
    List of project role ids to be associated with the user.
    projectId String
    Project id to be associated with the user.
    roleIds List<String>
    List of project role ids to be associated with the user.
    projectId string
    Project id to be associated with the user.
    roleIds string[]
    List of project role ids to be associated with the user.
    project_id str
    Project id to be associated with the user.
    role_ids Sequence[str]
    List of project role ids to be associated with the user.
    projectId String
    Project id to be associated with the user.
    roleIds List<String>
    List of project role ids to be associated with the user.

    UserResourceRole, UserResourceRoleArgs

    FilterIds List<string>
    List of filter ids.
    ProjectIds List<string>
    Project id's to be associated with the user.
    RoleIds List<string>
    List of resource role ids to be associated with the user.
    FilterIds []string
    List of filter ids.
    ProjectIds []string
    Project id's to be associated with the user.
    RoleIds []string
    List of resource role ids to be associated with the user.
    filterIds List<String>
    List of filter ids.
    projectIds List<String>
    Project id's to be associated with the user.
    roleIds List<String>
    List of resource role ids to be associated with the user.
    filterIds string[]
    List of filter ids.
    projectIds string[]
    Project id's to be associated with the user.
    roleIds string[]
    List of resource role ids to be associated with the user.
    filter_ids Sequence[str]
    List of filter ids.
    project_ids Sequence[str]
    Project id's to be associated with the user.
    role_ids Sequence[str]
    List of resource role ids to be associated with the user.
    filterIds List<String>
    List of filter ids.
    projectIds List<String>
    Project id's to be associated with the user.
    roleIds List<String>
    List of resource role ids to be associated with the user.

    UserTimeouts, UserTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    UserWorkspaceRole, UserWorkspaceRoleArgs

    ProjectId string
    Project id to be associated with the user.
    Workspaces List<UserWorkspaceRoleWorkspace>
    List of workspace roles to be associated with the user.
    ProjectId string
    Project id to be associated with the user.
    Workspaces []UserWorkspaceRoleWorkspace
    List of workspace roles to be associated with the user.
    projectId String
    Project id to be associated with the user.
    workspaces List<UserWorkspaceRoleWorkspace>
    List of workspace roles to be associated with the user.
    projectId string
    Project id to be associated with the user.
    workspaces UserWorkspaceRoleWorkspace[]
    List of workspace roles to be associated with the user.
    project_id str
    Project id to be associated with the user.
    workspaces Sequence[UserWorkspaceRoleWorkspace]
    List of workspace roles to be associated with the user.
    projectId String
    Project id to be associated with the user.
    workspaces List<Property Map>
    List of workspace roles to be associated with the user.

    UserWorkspaceRoleWorkspace, UserWorkspaceRoleWorkspaceArgs

    Id string
    Workspace id to be associated with the user.
    RoleIds List<string>
    List of workspace role ids to be associated with the user.
    Id string
    Workspace id to be associated with the user.
    RoleIds []string
    List of workspace role ids to be associated with the user.
    id String
    Workspace id to be associated with the user.
    roleIds List<String>
    List of workspace role ids to be associated with the user.
    id string
    Workspace id to be associated with the user.
    roleIds string[]
    List of workspace role ids to be associated with the user.
    id str
    Workspace id to be associated with the user.
    role_ids Sequence[str]
    List of workspace role ids to be associated with the user.
    id String
    Workspace id to be associated with the user.
    roleIds List<String>
    List of workspace role ids to be associated with the user.

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    spectrocloud logo
    spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud