1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudsso
  5. User
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
alicloud logo
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi

    Provides a Cloud Sso User resource.

    For information about Cloud Sso User and how to use it, see What is User.

    NOTE: Available since v1.140.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    import * as std from "@pulumi/std";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.cloudsso.getDirectories({});
    const defaultInteger = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const defaultDirectory: alicloud.cloudsso.Directory[] = [];
    _default.then(_default => _default.ids).length.apply(length => {
        for (const range = {value: 0}; range.value < (length > 0 ? 0 : 1); range.value++) {
            defaultDirectory.push(new alicloud.cloudsso.Directory(`default-${range.value}`, {directoryName: name}));
        }
    });
    const directoryId = pulumi.all([_default.then(_default => _default.ids).length, _default, std.concat({
        input: [
            defaultDirectory.map(__item => __item.id),
            [""],
        ],
    })]).apply(([length, _default, invoke]) => length > 0 ? _default.ids?.[0] : invoke.result?.[0]);
    const defaultUser = new alicloud.cloudsso.User("default", {
        directoryId: directoryId,
        userName: `${name}-${defaultInteger.result}`,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    import pulumi_std as std
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.cloudsso.get_directories()
    default_integer = random.index.Integer("default",
        min=10000,
        max=99999)
    default_directory = []
    def create_default(range_body):
        for range in [{"value": i} for i in range(0, range_body)]:
            default_directory.append(alicloud.cloudsso.Directory(f"default-{range['value']}", directory_name=name))
    
    len(default.ids).apply(lambda resolved_outputs: create_default(0 if resolved_outputs['length'] > 0 else 1))
    directory_id = len(default.ids).apply(lambda length: default.ids[0] if length > 0 else std.concat(input=[
        [__item.id for __item in default_directory],
        [""],
    ]).result[0])
    default_user = alicloud.cloudsso.User("default",
        directory_id=directory_id,
        user_name=f"{name}-{default_integer['result']}")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudsso"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    cfg := config.New(ctx, "")
    name := "terraform-example";
    if param := cfg.Get("name"); param != ""{
    name = param
    }
    _default, err := cloudsso.GetDirectories(ctx, &cloudsso.GetDirectoriesArgs{
    }, nil);
    if err != nil {
    return err
    }
    defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    Min: 10000,
    Max: 99999,
    })
    if err != nil {
    return err
    }
    var tmp0 float64
    if length > 0 {
    tmp0 = 0
    } else {
    tmp0 = 1
    }
    var defaultDirectory []*cloudsso.Directory
    for index := 0; index < float64(len(_default.Ids).ApplyT(func(length int) (float64, error) {
    return tmp0, nil
    }).(pulumi.Float64Output)); index++ {
        key0 := index
        _ := index
    __res, err := cloudsso.NewDirectory(ctx, fmt.Sprintf("default-%v", key0), &cloudsso.DirectoryArgs{
    DirectoryName: pulumi.String(name),
    })
    if err != nil {
    return err
    }
    defaultDirectory = append(defaultDirectory, __res)
    }
    var tmp1 *interface{}
    if length > 0 {
    tmp1 = _default.Ids[0]
    } else {
    tmp1 = std.Concat(ctx, &std.ConcatArgs{
    Input: pulumi.StringArrayArray{
    %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:26,12-34),
    []string{
    "",
    },
    },
    }, nil).Result[0]
    }
    directoryId := len(_default.Ids).ApplyT(func(length int) (*interface{}, error) {
    return &tmp1, nil
    }).(pulumi.Interface{}PtrOutput)
    _, err = cloudsso.NewUser(ctx, "default", &cloudsso.UserArgs{
    DirectoryId: pulumi.Any(directoryId),
    UserName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.CloudSso.GetDirectories.Invoke();
    
        var defaultInteger = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultDirectory = new List<AliCloud.CloudSso.Directory>();
        for (var rangeIndex = 0; rangeIndex < @default.Apply(@default => @default.Apply(getDirectoriesResult => getDirectoriesResult.Ids)).Length.Apply(length => length > 0 ? 0 : 1); rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            defaultDirectory.Add(new AliCloud.CloudSso.Directory($"default-{range.Value}", new()
            {
                DirectoryName = name,
            }));
        }
        var directoryId = Output.Tuple(@default.Apply(@default => @default.Apply(getDirectoriesResult => getDirectoriesResult.Ids)).Length, @default, Std.Concat.Invoke(new()
        {
            Input = new[]
            {
                defaultDirectory.Select(__item => __item.Id).ToList(),
                new[]
                {
                    "",
                },
            },
        })).Apply(values =>
        {
            var length = values.Item1;
            var @default = values.Item2;
            var invoke = values.Item3;
            return length > 0 ? @default.Apply(getDirectoriesResult => getDirectoriesResult.Ids[0]) : invoke.Result[0];
        });
    
        var defaultUser = new AliCloud.CloudSso.User("default", new()
        {
            DirectoryId = directoryId,
            UserName = $"{name}-{defaultInteger.Result}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
    import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
    import com.pulumi.random.Integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.cloudsso.Directory;
    import com.pulumi.alicloud.cloudsso.DirectoryArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.std.inputs.ConcatArgs;
    import com.pulumi.alicloud.cloudsso.User;
    import com.pulumi.alicloud.cloudsso.UserArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
                .build());
    
            var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            for (var i = 0; i < default_.ids().length().applyValue(_length -> _length > 0 ? 0 : 1); i++) {
                new Directory("defaultDirectory-" + i, DirectoryArgs.builder()
                    .directoryName(name)
                    .build());
    
            
    }
            final var directoryId = default_.ids().length().applyValue(_length -> _length > 0 ? default_.ids()[0] : StdFunctions.concat(ConcatArgs.builder()
                .input(            
                    defaultDirectory.stream().map(element -> element.id()).collect(toList()),
                    "")
                .build()).result()[0]);
    
            var defaultUser = new User("defaultUser", UserArgs.builder()
                .directoryId(directoryId)
                .userName(String.format("%s-%s", name,defaultInteger.result()))
                .build());
    
        }
    }
    
    Example coming soon!
    

    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,
             directory_id: Optional[str] = None,
             user_name: Optional[str] = None,
             description: Optional[str] = None,
             display_name: Optional[str] = None,
             email: Optional[str] = None,
             first_name: Optional[str] = None,
             last_name: Optional[str] = None,
             mfa_authentication_settings: Optional[str] = None,
             password: Optional[str] = None,
             status: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = 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: alicloud:cloudsso: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 alicloudUserResource = new AliCloud.CloudSso.User("alicloudUserResource", new()
    {
        DirectoryId = "string",
        UserName = "string",
        Description = "string",
        DisplayName = "string",
        Email = "string",
        FirstName = "string",
        LastName = "string",
        MfaAuthenticationSettings = "string",
        Password = "string",
        Status = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cloudsso.NewUser(ctx, "alicloudUserResource", &cloudsso.UserArgs{
    	DirectoryId:               pulumi.String("string"),
    	UserName:                  pulumi.String("string"),
    	Description:               pulumi.String("string"),
    	DisplayName:               pulumi.String("string"),
    	Email:                     pulumi.String("string"),
    	FirstName:                 pulumi.String("string"),
    	LastName:                  pulumi.String("string"),
    	MfaAuthenticationSettings: pulumi.String("string"),
    	Password:                  pulumi.String("string"),
    	Status:                    pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var alicloudUserResource = new com.pulumi.alicloud.cloudsso.User("alicloudUserResource", com.pulumi.alicloud.cloudsso.UserArgs.builder()
        .directoryId("string")
        .userName("string")
        .description("string")
        .displayName("string")
        .email("string")
        .firstName("string")
        .lastName("string")
        .mfaAuthenticationSettings("string")
        .password("string")
        .status("string")
        .tags(Map.of("string", "string"))
        .build());
    
    alicloud_user_resource = alicloud.cloudsso.User("alicloudUserResource",
        directory_id="string",
        user_name="string",
        description="string",
        display_name="string",
        email="string",
        first_name="string",
        last_name="string",
        mfa_authentication_settings="string",
        password="string",
        status="string",
        tags={
            "string": "string",
        })
    
    const alicloudUserResource = new alicloud.cloudsso.User("alicloudUserResource", {
        directoryId: "string",
        userName: "string",
        description: "string",
        displayName: "string",
        email: "string",
        firstName: "string",
        lastName: "string",
        mfaAuthenticationSettings: "string",
        password: "string",
        status: "string",
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:cloudsso:User
    properties:
        description: string
        directoryId: string
        displayName: string
        email: string
        firstName: string
        lastName: string
        mfaAuthenticationSettings: string
        password: string
        status: string
        tags:
            string: string
        userName: 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:

    DirectoryId string
    The ID of the directory.
    UserName string
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    Description string
    The description of the user. The description can be up to 1,024 characters in length.
    DisplayName string
    The display name of the user. The display name can be up to 256 characters in length.
    Email string
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    FirstName string
    The first name of the user. The first name can be up to 64 characters in length.
    LastName string
    The last name of the user. The last name can be up to 64 characters in length.
    MfaAuthenticationSettings string
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Password string
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    Status string
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Tags Dictionary<string, string>
    The tag of the resource.
    DirectoryId string
    The ID of the directory.
    UserName string
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    Description string
    The description of the user. The description can be up to 1,024 characters in length.
    DisplayName string
    The display name of the user. The display name can be up to 256 characters in length.
    Email string
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    FirstName string
    The first name of the user. The first name can be up to 64 characters in length.
    LastName string
    The last name of the user. The last name can be up to 64 characters in length.
    MfaAuthenticationSettings string
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Password string
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    Status string
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Tags map[string]string
    The tag of the resource.
    directoryId String
    The ID of the directory.
    userName String
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    description String
    The description of the user. The description can be up to 1,024 characters in length.
    displayName String
    The display name of the user. The display name can be up to 256 characters in length.
    email String
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    firstName String
    The first name of the user. The first name can be up to 64 characters in length.
    lastName String
    The last name of the user. The last name can be up to 64 characters in length.
    mfaAuthenticationSettings String
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password String
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status String
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags Map<String,String>
    The tag of the resource.
    directoryId string
    The ID of the directory.
    userName string
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    description string
    The description of the user. The description can be up to 1,024 characters in length.
    displayName string
    The display name of the user. The display name can be up to 256 characters in length.
    email string
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    firstName string
    The first name of the user. The first name can be up to 64 characters in length.
    lastName string
    The last name of the user. The last name can be up to 64 characters in length.
    mfaAuthenticationSettings string
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password string
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status string
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags {[key: string]: string}
    The tag of the resource.
    directory_id str
    The ID of the directory.
    user_name str
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    description str
    The description of the user. The description can be up to 1,024 characters in length.
    display_name str
    The display name of the user. The display name can be up to 256 characters in length.
    email str
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    first_name str
    The first name of the user. The first name can be up to 64 characters in length.
    last_name str
    The last name of the user. The last name can be up to 64 characters in length.
    mfa_authentication_settings str
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password str
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status str
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags Mapping[str, str]
    The tag of the resource.
    directoryId String
    The ID of the directory.
    userName String
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    description String
    The description of the user. The description can be up to 1,024 characters in length.
    displayName String
    The display name of the user. The display name can be up to 256 characters in length.
    email String
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    firstName String
    The first name of the user. The first name can be up to 64 characters in length.
    lastName String
    The last name of the user. The last name can be up to 64 characters in length.
    mfaAuthenticationSettings String
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password String
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status String
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags Map<String>
    The tag of the resource.

    Outputs

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

    CreateTime string
    (Available since v1.262.1) The time when the user was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The ID of the user.
    CreateTime string
    (Available since v1.262.1) The time when the user was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The ID of the user.
    createTime String
    (Available since v1.262.1) The time when the user was created.
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The ID of the user.
    createTime string
    (Available since v1.262.1) The time when the user was created.
    id string
    The provider-assigned unique ID for this managed resource.
    userId string
    The ID of the user.
    create_time str
    (Available since v1.262.1) The time when the user was created.
    id str
    The provider-assigned unique ID for this managed resource.
    user_id str
    The ID of the user.
    createTime String
    (Available since v1.262.1) The time when the user was created.
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The ID of the user.

    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,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            directory_id: Optional[str] = None,
            display_name: Optional[str] = None,
            email: Optional[str] = None,
            first_name: Optional[str] = None,
            last_name: Optional[str] = None,
            mfa_authentication_settings: Optional[str] = None,
            password: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            user_id: Optional[str] = None,
            user_name: Optional[str] = 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: alicloud:cloudsso: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:
    CreateTime string
    (Available since v1.262.1) The time when the user was created.
    Description string
    The description of the user. The description can be up to 1,024 characters in length.
    DirectoryId string
    The ID of the directory.
    DisplayName string
    The display name of the user. The display name can be up to 256 characters in length.
    Email string
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    FirstName string
    The first name of the user. The first name can be up to 64 characters in length.
    LastName string
    The last name of the user. The last name can be up to 64 characters in length.
    MfaAuthenticationSettings string
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Password string
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    Status string
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Tags Dictionary<string, string>
    The tag of the resource.
    UserId string
    The ID of the user.
    UserName string
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    CreateTime string
    (Available since v1.262.1) The time when the user was created.
    Description string
    The description of the user. The description can be up to 1,024 characters in length.
    DirectoryId string
    The ID of the directory.
    DisplayName string
    The display name of the user. The display name can be up to 256 characters in length.
    Email string
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    FirstName string
    The first name of the user. The first name can be up to 64 characters in length.
    LastName string
    The last name of the user. The last name can be up to 64 characters in length.
    MfaAuthenticationSettings string
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Password string
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    Status string
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    Tags map[string]string
    The tag of the resource.
    UserId string
    The ID of the user.
    UserName string
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    createTime String
    (Available since v1.262.1) The time when the user was created.
    description String
    The description of the user. The description can be up to 1,024 characters in length.
    directoryId String
    The ID of the directory.
    displayName String
    The display name of the user. The display name can be up to 256 characters in length.
    email String
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    firstName String
    The first name of the user. The first name can be up to 64 characters in length.
    lastName String
    The last name of the user. The last name can be up to 64 characters in length.
    mfaAuthenticationSettings String
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password String
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status String
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags Map<String,String>
    The tag of the resource.
    userId String
    The ID of the user.
    userName String
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    createTime string
    (Available since v1.262.1) The time when the user was created.
    description string
    The description of the user. The description can be up to 1,024 characters in length.
    directoryId string
    The ID of the directory.
    displayName string
    The display name of the user. The display name can be up to 256 characters in length.
    email string
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    firstName string
    The first name of the user. The first name can be up to 64 characters in length.
    lastName string
    The last name of the user. The last name can be up to 64 characters in length.
    mfaAuthenticationSettings string
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password string
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status string
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags {[key: string]: string}
    The tag of the resource.
    userId string
    The ID of the user.
    userName string
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    create_time str
    (Available since v1.262.1) The time when the user was created.
    description str
    The description of the user. The description can be up to 1,024 characters in length.
    directory_id str
    The ID of the directory.
    display_name str
    The display name of the user. The display name can be up to 256 characters in length.
    email str
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    first_name str
    The first name of the user. The first name can be up to 64 characters in length.
    last_name str
    The last name of the user. The last name can be up to 64 characters in length.
    mfa_authentication_settings str
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password str
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status str
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags Mapping[str, str]
    The tag of the resource.
    user_id str
    The ID of the user.
    user_name str
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.
    createTime String
    (Available since v1.262.1) The time when the user was created.
    description String
    The description of the user. The description can be up to 1,024 characters in length.
    directoryId String
    The ID of the directory.
    displayName String
    The display name of the user. The display name can be up to 256 characters in length.
    email String
    The email address of the user. The email address must be unique within the directory. The email address can be up to 128 characters in length.
    firstName String
    The first name of the user. The first name can be up to 64 characters in length.
    lastName String
    The last name of the user. The last name can be up to 64 characters in length.
    mfaAuthenticationSettings String
    Specifies whether to enable MFA for the user. Default value: Enabled. Valid values: Enabled, Disabled.
    password String
    The new password. The password must contain the following types of characters: uppercase letters, lowercase letters, digits, and special characters. The password must be 8 to 32 characters in length.
    status String
    The status of the user. Default value: Enabled. Valid values: Enabled, Disabled.
    tags Map<String>
    The tag of the resource.
    userId String
    The ID of the user.
    userName String
    The username of the user. The username can contain digits, letters, and the following special characters: @_-. The username can be up to 64 characters in length.

    Import

    Cloud Sso User can be imported using the id, e.g.

    $ pulumi import alicloud:cloudsso/user:User example <directory_id>:<user_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate