1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. iam
  5. User
bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus
bytepluscc logo
bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus

    IAM子用户是访问控制的一种身份,由账号或是拥有权限的用户创建。用户被授予权限后,可登录控制台或使用访问密钥调用API访问云资源。

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      userDemo:
        type: bytepluscc:iam:User
        name: UserDemo
        properties:
          userName: UserDemo
          description: user description
          groups:
            - UserGroupDemo
          policies:
            - policy_name: TOSReadOnlyAccess
              policy_type: System
          tags:
            - key: env
              value: test
    

    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,
             user_name: Optional[str] = None,
             description: Optional[str] = None,
             display_name: Optional[str] = None,
             email: Optional[str] = None,
             email_is_verify: Optional[bool] = None,
             groups: Optional[Sequence[str]] = None,
             login_profile: Optional[UserLoginProfileArgs] = None,
             mobile_phone: Optional[str] = None,
             mobile_phone_is_verify: Optional[bool] = None,
             policies: Optional[Sequence[UserPolicyArgs]] = None,
             security_config: Optional[UserSecurityConfigArgs] = None,
             tags: Optional[Sequence[UserTagArgs]] = 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: bytepluscc:iam: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 byteplusccUserResource = new Bytepluscc.Iam.User("byteplusccUserResource", new()
    {
        UserName = "string",
        Description = "string",
        DisplayName = "string",
        Email = "string",
        EmailIsVerify = false,
        Groups = new[]
        {
            "string",
        },
        LoginProfile = new Bytepluscc.Iam.Inputs.UserLoginProfileArgs
        {
            CreateDate = "string",
            LastLoginDate = "string",
            LastLoginIp = "string",
            LastResetPasswordTime = 0,
            LoginAllowed = false,
            LoginLocked = false,
            Password = "string",
            PasswordExpireAt = 0,
            PasswordResetRequired = false,
            SafeAuthExemptDuration = 0,
            SafeAuthExemptRequired = 0,
            SafeAuthExemptUnit = 0,
            SafeAuthFlag = false,
            SafeAuthType = "string",
            UpdateDate = "string",
        },
        MobilePhone = "string",
        MobilePhoneIsVerify = false,
        Policies = new[]
        {
            new Bytepluscc.Iam.Inputs.UserPolicyArgs
            {
                PolicyName = "string",
                PolicyType = "string",
            },
        },
        SecurityConfig = new Bytepluscc.Iam.Inputs.UserSecurityConfigArgs
        {
            SafeAuthClose = 0,
            SafeAuthExemptDuration = 0,
            SafeAuthType = "string",
        },
        Tags = new[]
        {
            new Bytepluscc.Iam.Inputs.UserTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := iam.NewUser(ctx, "byteplusccUserResource", &iam.UserArgs{
    	UserName:      pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	Email:         pulumi.String("string"),
    	EmailIsVerify: pulumi.Bool(false),
    	Groups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LoginProfile: &iam.UserLoginProfileArgs{
    		CreateDate:             pulumi.String("string"),
    		LastLoginDate:          pulumi.String("string"),
    		LastLoginIp:            pulumi.String("string"),
    		LastResetPasswordTime:  pulumi.Float64(0),
    		LoginAllowed:           pulumi.Bool(false),
    		LoginLocked:            pulumi.Bool(false),
    		Password:               pulumi.String("string"),
    		PasswordExpireAt:       pulumi.Float64(0),
    		PasswordResetRequired:  pulumi.Bool(false),
    		SafeAuthExemptDuration: pulumi.Float64(0),
    		SafeAuthExemptRequired: pulumi.Float64(0),
    		SafeAuthExemptUnit:     pulumi.Float64(0),
    		SafeAuthFlag:           pulumi.Bool(false),
    		SafeAuthType:           pulumi.String("string"),
    		UpdateDate:             pulumi.String("string"),
    	},
    	MobilePhone:         pulumi.String("string"),
    	MobilePhoneIsVerify: pulumi.Bool(false),
    	Policies: iam.UserPolicyArray{
    		&iam.UserPolicyArgs{
    			PolicyName: pulumi.String("string"),
    			PolicyType: pulumi.String("string"),
    		},
    	},
    	SecurityConfig: &iam.UserSecurityConfigArgs{
    		SafeAuthClose:          pulumi.Float64(0),
    		SafeAuthExemptDuration: pulumi.Float64(0),
    		SafeAuthType:           pulumi.String("string"),
    	},
    	Tags: iam.UserTagArray{
    		&iam.UserTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var byteplusccUserResource = new com.byteplus.bytepluscc.iam.User("byteplusccUserResource", com.byteplus.bytepluscc.iam.UserArgs.builder()
        .userName("string")
        .description("string")
        .displayName("string")
        .email("string")
        .emailIsVerify(false)
        .groups("string")
        .loginProfile(UserLoginProfileArgs.builder()
            .createDate("string")
            .lastLoginDate("string")
            .lastLoginIp("string")
            .lastResetPasswordTime(0.0)
            .loginAllowed(false)
            .loginLocked(false)
            .password("string")
            .passwordExpireAt(0.0)
            .passwordResetRequired(false)
            .safeAuthExemptDuration(0.0)
            .safeAuthExemptRequired(0.0)
            .safeAuthExemptUnit(0.0)
            .safeAuthFlag(false)
            .safeAuthType("string")
            .updateDate("string")
            .build())
        .mobilePhone("string")
        .mobilePhoneIsVerify(false)
        .policies(UserPolicyArgs.builder()
            .policyName("string")
            .policyType("string")
            .build())
        .securityConfig(UserSecurityConfigArgs.builder()
            .safeAuthClose(0.0)
            .safeAuthExemptDuration(0.0)
            .safeAuthType("string")
            .build())
        .tags(UserTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    bytepluscc_user_resource = bytepluscc.iam.User("byteplusccUserResource",
        user_name="string",
        description="string",
        display_name="string",
        email="string",
        email_is_verify=False,
        groups=["string"],
        login_profile={
            "create_date": "string",
            "last_login_date": "string",
            "last_login_ip": "string",
            "last_reset_password_time": 0,
            "login_allowed": False,
            "login_locked": False,
            "password": "string",
            "password_expire_at": 0,
            "password_reset_required": False,
            "safe_auth_exempt_duration": 0,
            "safe_auth_exempt_required": 0,
            "safe_auth_exempt_unit": 0,
            "safe_auth_flag": False,
            "safe_auth_type": "string",
            "update_date": "string",
        },
        mobile_phone="string",
        mobile_phone_is_verify=False,
        policies=[{
            "policy_name": "string",
            "policy_type": "string",
        }],
        security_config={
            "safe_auth_close": 0,
            "safe_auth_exempt_duration": 0,
            "safe_auth_type": "string",
        },
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const byteplusccUserResource = new bytepluscc.iam.User("byteplusccUserResource", {
        userName: "string",
        description: "string",
        displayName: "string",
        email: "string",
        emailIsVerify: false,
        groups: ["string"],
        loginProfile: {
            createDate: "string",
            lastLoginDate: "string",
            lastLoginIp: "string",
            lastResetPasswordTime: 0,
            loginAllowed: false,
            loginLocked: false,
            password: "string",
            passwordExpireAt: 0,
            passwordResetRequired: false,
            safeAuthExemptDuration: 0,
            safeAuthExemptRequired: 0,
            safeAuthExemptUnit: 0,
            safeAuthFlag: false,
            safeAuthType: "string",
            updateDate: "string",
        },
        mobilePhone: "string",
        mobilePhoneIsVerify: false,
        policies: [{
            policyName: "string",
            policyType: "string",
        }],
        securityConfig: {
            safeAuthClose: 0,
            safeAuthExemptDuration: 0,
            safeAuthType: "string",
        },
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: bytepluscc:iam:User
    properties:
        description: string
        displayName: string
        email: string
        emailIsVerify: false
        groups:
            - string
        loginProfile:
            createDate: string
            lastLoginDate: string
            lastLoginIp: string
            lastResetPasswordTime: 0
            loginAllowed: false
            loginLocked: false
            password: string
            passwordExpireAt: 0
            passwordResetRequired: false
            safeAuthExemptDuration: 0
            safeAuthExemptRequired: 0
            safeAuthExemptUnit: 0
            safeAuthFlag: false
            safeAuthType: string
            updateDate: string
        mobilePhone: string
        mobilePhoneIsVerify: false
        policies:
            - policyName: string
              policyType: string
        securityConfig:
            safeAuthClose: 0
            safeAuthExemptDuration: 0
            safeAuthType: string
        tags:
            - key: string
              value: 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:

    UserName string
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    Description string
    子用户对应的描述信息,长度不超过255。
    DisplayName string
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    Email string
    子用户对应的电子邮件地址。
    EmailIsVerify bool
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    Groups List<string>
    子用户归属的用户组。
    LoginProfile Byteplus.UserLoginProfile
    子用户的登录配置。
    MobilePhone string
    子用户对应的手机号。
    MobilePhoneIsVerify bool
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    Policies List<Byteplus.UserPolicy>
    SecurityConfig Byteplus.UserSecurityConfig
    子用户的操作保护配置。
    Tags List<Byteplus.UserTag>
    UserName string
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    Description string
    子用户对应的描述信息,长度不超过255。
    DisplayName string
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    Email string
    子用户对应的电子邮件地址。
    EmailIsVerify bool
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    Groups []string
    子用户归属的用户组。
    LoginProfile UserLoginProfileArgs
    子用户的登录配置。
    MobilePhone string
    子用户对应的手机号。
    MobilePhoneIsVerify bool
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    Policies []UserPolicyArgs
    SecurityConfig UserSecurityConfigArgs
    子用户的操作保护配置。
    Tags []UserTagArgs
    userName String
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    description String
    子用户对应的描述信息,长度不超过255。
    displayName String
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email String
    子用户对应的电子邮件地址。
    emailIsVerify Boolean
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups List<String>
    子用户归属的用户组。
    loginProfile UserLoginProfile
    子用户的登录配置。
    mobilePhone String
    子用户对应的手机号。
    mobilePhoneIsVerify Boolean
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies List<UserPolicy>
    securityConfig UserSecurityConfig
    子用户的操作保护配置。
    tags List<UserTag>
    userName string
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    description string
    子用户对应的描述信息,长度不超过255。
    displayName string
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email string
    子用户对应的电子邮件地址。
    emailIsVerify boolean
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups string[]
    子用户归属的用户组。
    loginProfile UserLoginProfile
    子用户的登录配置。
    mobilePhone string
    子用户对应的手机号。
    mobilePhoneIsVerify boolean
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies UserPolicy[]
    securityConfig UserSecurityConfig
    子用户的操作保护配置。
    tags UserTag[]
    user_name str
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    description str
    子用户对应的描述信息,长度不超过255。
    display_name str
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email str
    子用户对应的电子邮件地址。
    email_is_verify bool
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups Sequence[str]
    子用户归属的用户组。
    login_profile UserLoginProfileArgs
    子用户的登录配置。
    mobile_phone str
    子用户对应的手机号。
    mobile_phone_is_verify bool
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies Sequence[UserPolicyArgs]
    security_config UserSecurityConfigArgs
    子用户的操作保护配置。
    tags Sequence[UserTagArgs]
    userName String
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    description String
    子用户对应的描述信息,长度不超过255。
    displayName String
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email String
    子用户对应的电子邮件地址。
    emailIsVerify Boolean
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups List<String>
    子用户归属的用户组。
    loginProfile Property Map
    子用户的登录配置。
    mobilePhone String
    子用户对应的手机号。
    mobilePhoneIsVerify Boolean
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies List<Property Map>
    securityConfig Property Map
    子用户的操作保护配置。
    tags List<Property Map>

    Outputs

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

    AccessKeys List<Byteplus.UserAccessKey>
    AccountId double
    子用户归属的主账号。
    CreateDate string
    子用户对应的创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Trn string
    子用户对应的Trn表达式。
    UpdateDate string
    子用户对应的更新时间。
    UserId int
    子用户的ID。
    AccessKeys []UserAccessKey
    AccountId float64
    子用户归属的主账号。
    CreateDate string
    子用户对应的创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Trn string
    子用户对应的Trn表达式。
    UpdateDate string
    子用户对应的更新时间。
    UserId int
    子用户的ID。
    accessKeys List<UserAccessKey>
    accountId Double
    子用户归属的主账号。
    createDate String
    子用户对应的创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    trn String
    子用户对应的Trn表达式。
    updateDate String
    子用户对应的更新时间。
    userId Integer
    子用户的ID。
    accessKeys UserAccessKey[]
    accountId number
    子用户归属的主账号。
    createDate string
    子用户对应的创建时间。
    id string
    The provider-assigned unique ID for this managed resource.
    trn string
    子用户对应的Trn表达式。
    updateDate string
    子用户对应的更新时间。
    userId number
    子用户的ID。
    access_keys Sequence[UserAccessKey]
    account_id float
    子用户归属的主账号。
    create_date str
    子用户对应的创建时间。
    id str
    The provider-assigned unique ID for this managed resource.
    trn str
    子用户对应的Trn表达式。
    update_date str
    子用户对应的更新时间。
    user_id int
    子用户的ID。
    accessKeys List<Property Map>
    accountId Number
    子用户归属的主账号。
    createDate String
    子用户对应的创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    trn String
    子用户对应的Trn表达式。
    updateDate String
    子用户对应的更新时间。
    userId Number
    子用户的ID。

    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,
            access_keys: Optional[Sequence[UserAccessKeyArgs]] = None,
            account_id: Optional[float] = None,
            create_date: Optional[str] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            email: Optional[str] = None,
            email_is_verify: Optional[bool] = None,
            groups: Optional[Sequence[str]] = None,
            login_profile: Optional[UserLoginProfileArgs] = None,
            mobile_phone: Optional[str] = None,
            mobile_phone_is_verify: Optional[bool] = None,
            policies: Optional[Sequence[UserPolicyArgs]] = None,
            security_config: Optional[UserSecurityConfigArgs] = None,
            tags: Optional[Sequence[UserTagArgs]] = None,
            trn: Optional[str] = None,
            update_date: Optional[str] = None,
            user_id: Optional[int] = 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: bytepluscc:iam: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:
    AccessKeys List<Byteplus.UserAccessKey>
    AccountId double
    子用户归属的主账号。
    CreateDate string
    子用户对应的创建时间。
    Description string
    子用户对应的描述信息,长度不超过255。
    DisplayName string
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    Email string
    子用户对应的电子邮件地址。
    EmailIsVerify bool
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    Groups List<string>
    子用户归属的用户组。
    LoginProfile Byteplus.UserLoginProfile
    子用户的登录配置。
    MobilePhone string
    子用户对应的手机号。
    MobilePhoneIsVerify bool
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    Policies List<Byteplus.UserPolicy>
    SecurityConfig Byteplus.UserSecurityConfig
    子用户的操作保护配置。
    Tags List<Byteplus.UserTag>
    Trn string
    子用户对应的Trn表达式。
    UpdateDate string
    子用户对应的更新时间。
    UserId int
    子用户的ID。
    UserName string
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    AccessKeys []UserAccessKeyArgs
    AccountId float64
    子用户归属的主账号。
    CreateDate string
    子用户对应的创建时间。
    Description string
    子用户对应的描述信息,长度不超过255。
    DisplayName string
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    Email string
    子用户对应的电子邮件地址。
    EmailIsVerify bool
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    Groups []string
    子用户归属的用户组。
    LoginProfile UserLoginProfileArgs
    子用户的登录配置。
    MobilePhone string
    子用户对应的手机号。
    MobilePhoneIsVerify bool
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    Policies []UserPolicyArgs
    SecurityConfig UserSecurityConfigArgs
    子用户的操作保护配置。
    Tags []UserTagArgs
    Trn string
    子用户对应的Trn表达式。
    UpdateDate string
    子用户对应的更新时间。
    UserId int
    子用户的ID。
    UserName string
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    accessKeys List<UserAccessKey>
    accountId Double
    子用户归属的主账号。
    createDate String
    子用户对应的创建时间。
    description String
    子用户对应的描述信息,长度不超过255。
    displayName String
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email String
    子用户对应的电子邮件地址。
    emailIsVerify Boolean
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups List<String>
    子用户归属的用户组。
    loginProfile UserLoginProfile
    子用户的登录配置。
    mobilePhone String
    子用户对应的手机号。
    mobilePhoneIsVerify Boolean
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies List<UserPolicy>
    securityConfig UserSecurityConfig
    子用户的操作保护配置。
    tags List<UserTag>
    trn String
    子用户对应的Trn表达式。
    updateDate String
    子用户对应的更新时间。
    userId Integer
    子用户的ID。
    userName String
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    accessKeys UserAccessKey[]
    accountId number
    子用户归属的主账号。
    createDate string
    子用户对应的创建时间。
    description string
    子用户对应的描述信息,长度不超过255。
    displayName string
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email string
    子用户对应的电子邮件地址。
    emailIsVerify boolean
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups string[]
    子用户归属的用户组。
    loginProfile UserLoginProfile
    子用户的登录配置。
    mobilePhone string
    子用户对应的手机号。
    mobilePhoneIsVerify boolean
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies UserPolicy[]
    securityConfig UserSecurityConfig
    子用户的操作保护配置。
    tags UserTag[]
    trn string
    子用户对应的Trn表达式。
    updateDate string
    子用户对应的更新时间。
    userId number
    子用户的ID。
    userName string
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    access_keys Sequence[UserAccessKeyArgs]
    account_id float
    子用户归属的主账号。
    create_date str
    子用户对应的创建时间。
    description str
    子用户对应的描述信息,长度不超过255。
    display_name str
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email str
    子用户对应的电子邮件地址。
    email_is_verify bool
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups Sequence[str]
    子用户归属的用户组。
    login_profile UserLoginProfileArgs
    子用户的登录配置。
    mobile_phone str
    子用户对应的手机号。
    mobile_phone_is_verify bool
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies Sequence[UserPolicyArgs]
    security_config UserSecurityConfigArgs
    子用户的操作保护配置。
    tags Sequence[UserTagArgs]
    trn str
    子用户对应的Trn表达式。
    update_date str
    子用户对应的更新时间。
    user_id int
    子用户的ID。
    user_name str
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
    accessKeys List<Property Map>
    accountId Number
    子用户归属的主账号。
    createDate String
    子用户对应的创建时间。
    description String
    子用户对应的描述信息,长度不超过255。
    displayName String
    子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
    email String
    子用户对应的电子邮件地址。
    emailIsVerify Boolean
    子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
    groups List<String>
    子用户归属的用户组。
    loginProfile Property Map
    子用户的登录配置。
    mobilePhone String
    子用户对应的手机号。
    mobilePhoneIsVerify Boolean
    子用户手机号是否已验证。true代表已验证,false代表未验证。
    policies List<Property Map>
    securityConfig Property Map
    子用户的操作保护配置。
    tags List<Property Map>
    trn String
    子用户对应的Trn表达式。
    updateDate String
    子用户对应的更新时间。
    userId Number
    子用户的ID。
    userName String
    子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。

    Supporting Types

    UserAccessKey, UserAccessKeyArgs

    AccessKeyId string
    访问密钥ID。
    CreatedTime string
    访问密钥创建时间。
    Region string
    最近一次使用的服务区域。
    RequestTime string
    访问密钥最近一次使用时间。
    Service string
    最近一次使用的服务名称。
    Status string
    访问密钥状态。Active代表启用,Inactive代表禁用。
    UpdatedTime string
    访问密钥更新时间。
    UserName string
    访问密钥Secret。
    AccessKeyId string
    访问密钥ID。
    CreatedTime string
    访问密钥创建时间。
    Region string
    最近一次使用的服务区域。
    RequestTime string
    访问密钥最近一次使用时间。
    Service string
    最近一次使用的服务名称。
    Status string
    访问密钥状态。Active代表启用,Inactive代表禁用。
    UpdatedTime string
    访问密钥更新时间。
    UserName string
    访问密钥Secret。
    accessKeyId String
    访问密钥ID。
    createdTime String
    访问密钥创建时间。
    region String
    最近一次使用的服务区域。
    requestTime String
    访问密钥最近一次使用时间。
    service String
    最近一次使用的服务名称。
    status String
    访问密钥状态。Active代表启用,Inactive代表禁用。
    updatedTime String
    访问密钥更新时间。
    userName String
    访问密钥Secret。
    accessKeyId string
    访问密钥ID。
    createdTime string
    访问密钥创建时间。
    region string
    最近一次使用的服务区域。
    requestTime string
    访问密钥最近一次使用时间。
    service string
    最近一次使用的服务名称。
    status string
    访问密钥状态。Active代表启用,Inactive代表禁用。
    updatedTime string
    访问密钥更新时间。
    userName string
    访问密钥Secret。
    access_key_id str
    访问密钥ID。
    created_time str
    访问密钥创建时间。
    region str
    最近一次使用的服务区域。
    request_time str
    访问密钥最近一次使用时间。
    service str
    最近一次使用的服务名称。
    status str
    访问密钥状态。Active代表启用,Inactive代表禁用。
    updated_time str
    访问密钥更新时间。
    user_name str
    访问密钥Secret。
    accessKeyId String
    访问密钥ID。
    createdTime String
    访问密钥创建时间。
    region String
    最近一次使用的服务区域。
    requestTime String
    访问密钥最近一次使用时间。
    service String
    最近一次使用的服务名称。
    status String
    访问密钥状态。Active代表启用,Inactive代表禁用。
    updatedTime String
    访问密钥更新时间。
    userName String
    访问密钥Secret。

    UserLoginProfile, UserLoginProfileArgs

    CreateDate string
    登录配置创建时间。
    LastLoginDate string
    上次登录时间。
    LastLoginIp string
    上次登录IP。
    LastResetPasswordTime double
    上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
    LoginAllowed bool
    是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
    LoginLocked bool
    登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
    Password string
    登录密码。
    PasswordExpireAt double
    密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
    PasswordResetRequired bool
    下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
    SafeAuthExemptDuration double
    登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
    SafeAuthExemptRequired double
    是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
    SafeAuthExemptUnit double
    登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
    SafeAuthFlag bool
    是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
    SafeAuthType string
    登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
    UpdateDate string
    登录配置更新时间。
    CreateDate string
    登录配置创建时间。
    LastLoginDate string
    上次登录时间。
    LastLoginIp string
    上次登录IP。
    LastResetPasswordTime float64
    上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
    LoginAllowed bool
    是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
    LoginLocked bool
    登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
    Password string
    登录密码。
    PasswordExpireAt float64
    密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
    PasswordResetRequired bool
    下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
    SafeAuthExemptDuration float64
    登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
    SafeAuthExemptRequired float64
    是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
    SafeAuthExemptUnit float64
    登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
    SafeAuthFlag bool
    是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
    SafeAuthType string
    登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
    UpdateDate string
    登录配置更新时间。
    createDate String
    登录配置创建时间。
    lastLoginDate String
    上次登录时间。
    lastLoginIp String
    上次登录IP。
    lastResetPasswordTime Double
    上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
    loginAllowed Boolean
    是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
    loginLocked Boolean
    登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
    password String
    登录密码。
    passwordExpireAt Double
    密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
    passwordResetRequired Boolean
    下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
    safeAuthExemptDuration Double
    登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
    safeAuthExemptRequired Double
    是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
    safeAuthExemptUnit Double
    登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
    safeAuthFlag Boolean
    是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
    safeAuthType String
    登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
    updateDate String
    登录配置更新时间。
    createDate string
    登录配置创建时间。
    lastLoginDate string
    上次登录时间。
    lastLoginIp string
    上次登录IP。
    lastResetPasswordTime number
    上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
    loginAllowed boolean
    是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
    loginLocked boolean
    登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
    password string
    登录密码。
    passwordExpireAt number
    密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
    passwordResetRequired boolean
    下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
    safeAuthExemptDuration number
    登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
    safeAuthExemptRequired number
    是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
    safeAuthExemptUnit number
    登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
    safeAuthFlag boolean
    是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
    safeAuthType string
    登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
    updateDate string
    登录配置更新时间。
    create_date str
    登录配置创建时间。
    last_login_date str
    上次登录时间。
    last_login_ip str
    上次登录IP。
    last_reset_password_time float
    上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
    login_allowed bool
    是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
    login_locked bool
    登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
    password str
    登录密码。
    password_expire_at float
    密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
    password_reset_required bool
    下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
    safe_auth_exempt_duration float
    登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
    safe_auth_exempt_required float
    是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
    safe_auth_exempt_unit float
    登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
    safe_auth_flag bool
    是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
    safe_auth_type str
    登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
    update_date str
    登录配置更新时间。
    createDate String
    登录配置创建时间。
    lastLoginDate String
    上次登录时间。
    lastLoginIp String
    上次登录IP。
    lastResetPasswordTime Number
    上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
    loginAllowed Boolean
    是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
    loginLocked Boolean
    登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
    password String
    登录密码。
    passwordExpireAt Number
    密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
    passwordResetRequired Boolean
    下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
    safeAuthExemptDuration Number
    登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
    safeAuthExemptRequired Number
    是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
    safeAuthExemptUnit Number
    登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
    safeAuthFlag Boolean
    是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
    safeAuthType String
    登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
    updateDate String
    登录配置更新时间。

    UserPolicy, UserPolicyArgs

    PolicyName string
    权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
    PolicyType string
    权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
    PolicyName string
    权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
    PolicyType string
    权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
    policyName String
    权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
    policyType String
    权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
    policyName string
    权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
    policyType string
    权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
    policy_name str
    权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
    policy_type str
    权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
    policyName String
    权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
    policyType String
    权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。

    UserSecurityConfig, UserSecurityConfigArgs

    SafeAuthClose double
    是否开启操作保护。0代表开启,1代表关闭。
    SafeAuthExemptDuration double
    操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
    SafeAuthType string
    操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
    SafeAuthClose float64
    是否开启操作保护。0代表开启,1代表关闭。
    SafeAuthExemptDuration float64
    操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
    SafeAuthType string
    操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
    safeAuthClose Double
    是否开启操作保护。0代表开启,1代表关闭。
    safeAuthExemptDuration Double
    操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
    safeAuthType String
    操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
    safeAuthClose number
    是否开启操作保护。0代表开启,1代表关闭。
    safeAuthExemptDuration number
    操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
    safeAuthType string
    操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
    safe_auth_close float
    是否开启操作保护。0代表开启,1代表关闭。
    safe_auth_exempt_duration float
    操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
    safe_auth_type str
    操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
    safeAuthClose Number
    是否开启操作保护。0代表开启,1代表关闭。
    safeAuthExemptDuration Number
    操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
    safeAuthType String
    操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。

    UserTag, UserTagArgs

    Key string
    标签键。
    Value string
    标签值。
    Key string
    标签键。
    Value string
    标签值。
    key String
    标签键。
    value String
    标签值。
    key string
    标签键。
    value string
    标签值。
    key str
    标签键。
    value str
    标签值。
    key String
    标签键。
    value String
    标签值。

    Import

    $ pulumi import bytepluscc:iam/user:User example "user_name"
    

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

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    bytepluscc v0.0.11 published on Wednesday, Jan 21, 2026 by Byteplus
      Meet Neo: Your AI Platform Teammate