1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. IdentityCenterUser
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.IdentityCenterUser

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create an identity center user

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.IdentityCenterUser("example", {
        description: "desc.",
        userName: "tf-example",
        zoneId: "z-1os7c9tyugct",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.IdentityCenterUser("example",
        description="desc.",
        user_name="tf-example",
        zone_id="z-1os7c9tyugct")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewIdentityCenterUser(ctx, "example", &tencentcloud.IdentityCenterUserArgs{
    			Description: pulumi.String("desc."),
    			UserName:    pulumi.String("tf-example"),
    			ZoneId:      pulumi.String("z-1os7c9tyugct"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.IdentityCenterUser("example", new()
        {
            Description = "desc.",
            UserName = "tf-example",
            ZoneId = "z-1os7c9tyugct",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.IdentityCenterUser;
    import com.pulumi.tencentcloud.IdentityCenterUserArgs;
    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 example = new IdentityCenterUser("example", IdentityCenterUserArgs.builder()
                .description("desc.")
                .userName("tf-example")
                .zoneId("z-1os7c9tyugct")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:IdentityCenterUser
        properties:
          description: desc.
          userName: tf-example
          zoneId: z-1os7c9tyugct
    

    Or

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.IdentityCenterUser("example", {
        description: "desc.",
        displayName: "DisplayName",
        email: "example@tencent.com",
        firstName: "FirstName",
        lastName: "LastName",
        userName: "tf-example",
        userStatus: "Enabled",
        zoneId: "z-1os7c9tyugct",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.IdentityCenterUser("example",
        description="desc.",
        display_name="DisplayName",
        email="example@tencent.com",
        first_name="FirstName",
        last_name="LastName",
        user_name="tf-example",
        user_status="Enabled",
        zone_id="z-1os7c9tyugct")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewIdentityCenterUser(ctx, "example", &tencentcloud.IdentityCenterUserArgs{
    			Description: pulumi.String("desc."),
    			DisplayName: pulumi.String("DisplayName"),
    			Email:       pulumi.String("example@tencent.com"),
    			FirstName:   pulumi.String("FirstName"),
    			LastName:    pulumi.String("LastName"),
    			UserName:    pulumi.String("tf-example"),
    			UserStatus:  pulumi.String("Enabled"),
    			ZoneId:      pulumi.String("z-1os7c9tyugct"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.IdentityCenterUser("example", new()
        {
            Description = "desc.",
            DisplayName = "DisplayName",
            Email = "example@tencent.com",
            FirstName = "FirstName",
            LastName = "LastName",
            UserName = "tf-example",
            UserStatus = "Enabled",
            ZoneId = "z-1os7c9tyugct",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.IdentityCenterUser;
    import com.pulumi.tencentcloud.IdentityCenterUserArgs;
    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 example = new IdentityCenterUser("example", IdentityCenterUserArgs.builder()
                .description("desc.")
                .displayName("DisplayName")
                .email("example@tencent.com")
                .firstName("FirstName")
                .lastName("LastName")
                .userName("tf-example")
                .userStatus("Enabled")
                .zoneId("z-1os7c9tyugct")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:IdentityCenterUser
        properties:
          description: desc.
          displayName: DisplayName
          email: example@tencent.com
          firstName: FirstName
          lastName: LastName
          userName: tf-example
          userStatus: Enabled
          zoneId: z-1os7c9tyugct
    

    Create IdentityCenterUser Resource

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

    Constructor syntax

    new IdentityCenterUser(name: string, args: IdentityCenterUserArgs, opts?: CustomResourceOptions);
    @overload
    def IdentityCenterUser(resource_name: str,
                           args: IdentityCenterUserArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityCenterUser(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           user_name: Optional[str] = None,
                           zone_id: Optional[str] = None,
                           description: Optional[str] = None,
                           display_name: Optional[str] = None,
                           email: Optional[str] = None,
                           first_name: Optional[str] = None,
                           identity_center_user_id: Optional[str] = None,
                           last_name: Optional[str] = None,
                           user_status: Optional[str] = None)
    func NewIdentityCenterUser(ctx *Context, name string, args IdentityCenterUserArgs, opts ...ResourceOption) (*IdentityCenterUser, error)
    public IdentityCenterUser(string name, IdentityCenterUserArgs args, CustomResourceOptions? opts = null)
    public IdentityCenterUser(String name, IdentityCenterUserArgs args)
    public IdentityCenterUser(String name, IdentityCenterUserArgs args, CustomResourceOptions options)
    
    type: tencentcloud:IdentityCenterUser
    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 IdentityCenterUserArgs
    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 IdentityCenterUserArgs
    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 IdentityCenterUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityCenterUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityCenterUserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    UserName string
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    ZoneId string
    Zone id.
    Description string
    User's description. Length: Maximum 1024 characters.
    DisplayName string
    The display name of the user. Length: Maximum 256 characters.
    Email string
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    FirstName string
    The user's last name. Length: Maximum 64 characters.
    IdentityCenterUserId string
    ID of the resource.
    LastName string
    The user's name. Length: Maximum 64 characters.
    UserStatus string
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    UserName string
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    ZoneId string
    Zone id.
    Description string
    User's description. Length: Maximum 1024 characters.
    DisplayName string
    The display name of the user. Length: Maximum 256 characters.
    Email string
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    FirstName string
    The user's last name. Length: Maximum 64 characters.
    IdentityCenterUserId string
    ID of the resource.
    LastName string
    The user's name. Length: Maximum 64 characters.
    UserStatus string
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    userName String
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    zoneId String
    Zone id.
    description String
    User's description. Length: Maximum 1024 characters.
    displayName String
    The display name of the user. Length: Maximum 256 characters.
    email String
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    firstName String
    The user's last name. Length: Maximum 64 characters.
    identityCenterUserId String
    ID of the resource.
    lastName String
    The user's name. Length: Maximum 64 characters.
    userStatus String
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    userName string
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    zoneId string
    Zone id.
    description string
    User's description. Length: Maximum 1024 characters.
    displayName string
    The display name of the user. Length: Maximum 256 characters.
    email string
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    firstName string
    The user's last name. Length: Maximum 64 characters.
    identityCenterUserId string
    ID of the resource.
    lastName string
    The user's name. Length: Maximum 64 characters.
    userStatus string
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    user_name str
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    zone_id str
    Zone id.
    description str
    User's description. Length: Maximum 1024 characters.
    display_name str
    The display name of the user. Length: Maximum 256 characters.
    email str
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    first_name str
    The user's last name. Length: Maximum 64 characters.
    identity_center_user_id str
    ID of the resource.
    last_name str
    The user's name. Length: Maximum 64 characters.
    user_status str
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    userName String
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    zoneId String
    Zone id.
    description String
    User's description. Length: Maximum 1024 characters.
    displayName String
    The display name of the user. Length: Maximum 256 characters.
    email String
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    firstName String
    The user's last name. Length: Maximum 64 characters.
    identityCenterUserId String
    ID of the resource.
    lastName String
    The user's name. Length: Maximum 64 characters.
    userStatus String
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.

    Outputs

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

    CreateTime string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Update time.
    UserId string
    User id.
    UserType string
    User type.
    CreateTime string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Update time.
    UserId string
    User id.
    UserType string
    User type.
    createTime String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Update time.
    userId String
    User id.
    userType String
    User type.
    createTime string
    Create time.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    Update time.
    userId string
    User id.
    userType string
    User type.
    create_time str
    Create time.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    Update time.
    user_id str
    User id.
    user_type str
    User type.
    createTime String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Update time.
    userId String
    User id.
    userType String
    User type.

    Look up Existing IdentityCenterUser Resource

    Get an existing IdentityCenterUser 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?: IdentityCenterUserState, opts?: CustomResourceOptions): IdentityCenterUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            email: Optional[str] = None,
            first_name: Optional[str] = None,
            identity_center_user_id: Optional[str] = None,
            last_name: Optional[str] = None,
            update_time: Optional[str] = None,
            user_id: Optional[str] = None,
            user_name: Optional[str] = None,
            user_status: Optional[str] = None,
            user_type: Optional[str] = None,
            zone_id: Optional[str] = None) -> IdentityCenterUser
    func GetIdentityCenterUser(ctx *Context, name string, id IDInput, state *IdentityCenterUserState, opts ...ResourceOption) (*IdentityCenterUser, error)
    public static IdentityCenterUser Get(string name, Input<string> id, IdentityCenterUserState? state, CustomResourceOptions? opts = null)
    public static IdentityCenterUser get(String name, Output<String> id, IdentityCenterUserState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:IdentityCenterUser    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
    Create time.
    Description string
    User's description. Length: Maximum 1024 characters.
    DisplayName string
    The display name of the user. Length: Maximum 256 characters.
    Email string
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    FirstName string
    The user's last name. Length: Maximum 64 characters.
    IdentityCenterUserId string
    ID of the resource.
    LastName string
    The user's name. Length: Maximum 64 characters.
    UpdateTime string
    Update time.
    UserId string
    User id.
    UserName string
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    UserStatus string
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    UserType string
    User type.
    ZoneId string
    Zone id.
    CreateTime string
    Create time.
    Description string
    User's description. Length: Maximum 1024 characters.
    DisplayName string
    The display name of the user. Length: Maximum 256 characters.
    Email string
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    FirstName string
    The user's last name. Length: Maximum 64 characters.
    IdentityCenterUserId string
    ID of the resource.
    LastName string
    The user's name. Length: Maximum 64 characters.
    UpdateTime string
    Update time.
    UserId string
    User id.
    UserName string
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    UserStatus string
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    UserType string
    User type.
    ZoneId string
    Zone id.
    createTime String
    Create time.
    description String
    User's description. Length: Maximum 1024 characters.
    displayName String
    The display name of the user. Length: Maximum 256 characters.
    email String
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    firstName String
    The user's last name. Length: Maximum 64 characters.
    identityCenterUserId String
    ID of the resource.
    lastName String
    The user's name. Length: Maximum 64 characters.
    updateTime String
    Update time.
    userId String
    User id.
    userName String
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    userStatus String
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    userType String
    User type.
    zoneId String
    Zone id.
    createTime string
    Create time.
    description string
    User's description. Length: Maximum 1024 characters.
    displayName string
    The display name of the user. Length: Maximum 256 characters.
    email string
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    firstName string
    The user's last name. Length: Maximum 64 characters.
    identityCenterUserId string
    ID of the resource.
    lastName string
    The user's name. Length: Maximum 64 characters.
    updateTime string
    Update time.
    userId string
    User id.
    userName string
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    userStatus string
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    userType string
    User type.
    zoneId string
    Zone id.
    create_time str
    Create time.
    description str
    User's description. Length: Maximum 1024 characters.
    display_name str
    The display name of the user. Length: Maximum 256 characters.
    email str
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    first_name str
    The user's last name. Length: Maximum 64 characters.
    identity_center_user_id str
    ID of the resource.
    last_name str
    The user's name. Length: Maximum 64 characters.
    update_time str
    Update time.
    user_id str
    User id.
    user_name str
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    user_status str
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    user_type str
    User type.
    zone_id str
    Zone id.
    createTime String
    Create time.
    description String
    User's description. Length: Maximum 1024 characters.
    displayName String
    The display name of the user. Length: Maximum 256 characters.
    email String
    The user's email address. Must be unique within the catalog. Length: Maximum 128 characters.
    firstName String
    The user's last name. Length: Maximum 64 characters.
    identityCenterUserId String
    ID of the resource.
    lastName String
    The user's name. Length: Maximum 64 characters.
    updateTime String
    Update time.
    userId String
    User id.
    userName String
    User name. It must be unique in space. Modifications are not supported. Format: Contains numbers, English letters and special symbols(+, =, ,, ., @, -, _). Length: Maximum 64 characters.
    userStatus String
    The status of the user. Value: Enabled (default): Enabled. Disabled: Disabled.
    userType String
    User type.
    zoneId String
    Zone id.

    Import

    organization identity center user can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/identityCenterUser:IdentityCenterUser example z-1os7c9tyugct#u-rdvm4xdqi8pr
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack