1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. AdminUsers
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    The zia_admin_users resource manages administrator users in the Zscaler Internet Access (ZIA) cloud service. Administrator users have access to the ZIA Admin Portal and can manage policies, configurations, and other administrative tasks based on their assigned role.

    For more information, see the ZIA Admin User Management documentation.

    Example Usage

    Basic Admin User

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    import * as pulumi from "@pulumi/pulumi";
    
    const cfg = new pulumi.Config();
    const adminPassword = cfg.requireSecret("adminPassword");
    
    const example = new zia.AdminUsers("example", {
        loginName: "admin@example.com",
        username: "Example Admin",
        email: "admin@example.com",
        password: adminPassword,
        isPasswordLoginAllowed: true,
        role: { id: 12345 },
        adminScopeType: "ORGANIZATION",
    });
    
    import zscaler_pulumi_zia as zia
    
    cfg = pulumi.Config()
    admin_password = cfg.require_secret("adminPassword")
    
    example = zia.AdminUsers("example",
        login_name="admin@example.com",
        username="Example Admin",
        email="admin@example.com",
        password=admin_password,
        is_password_login_allowed=True,
        role={"id": 12345},
        admin_scope_type="ORGANIZATION",
    )
    
    resources:
      example:
        type: zia:AdminUsers
        properties:
          loginName: admin@example.com
          username: Example Admin
          email: admin@example.com
          password:
            fn::secret: ${adminPassword}
          isPasswordLoginAllowed: true
          role:
            id: 12345
          adminScopeType: ORGANIZATION
    

    Create AdminUsers Resource

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

    Constructor syntax

    new AdminUsers(name: string, args: AdminUsersArgs, opts?: CustomResourceOptions);
    @overload
    def AdminUsers(resource_name: str,
                   args: AdminUsersArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def AdminUsers(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   email: Optional[str] = None,
                   username: Optional[str] = None,
                   login_name: Optional[str] = None,
                   is_password_expired: Optional[bool] = None,
                   is_product_update_comm_enabled: Optional[bool] = None,
                   is_auditor: Optional[bool] = None,
                   is_exec_mobile_app_enabled: Optional[bool] = None,
                   is_non_editable: Optional[bool] = None,
                   admin_scope_entities: Optional[Sequence[int]] = None,
                   is_password_login_allowed: Optional[bool] = None,
                   disabled: Optional[bool] = None,
                   is_security_report_comm_enabled: Optional[bool] = None,
                   is_service_update_comm_enabled: Optional[bool] = None,
                   comments: Optional[str] = None,
                   password: Optional[str] = None,
                   role: Optional[AdminUserRoleInputArgs] = None,
                   admin_scope_type: Optional[str] = None)
    func NewAdminUsers(ctx *Context, name string, args AdminUsersArgs, opts ...ResourceOption) (*AdminUsers, error)
    public AdminUsers(string name, AdminUsersArgs args, CustomResourceOptions? opts = null)
    public AdminUsers(String name, AdminUsersArgs args)
    public AdminUsers(String name, AdminUsersArgs args, CustomResourceOptions options)
    
    type: zia:AdminUsers
    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 AdminUsersArgs
    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 AdminUsersArgs
    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 AdminUsersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AdminUsersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AdminUsersArgs
    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 adminUsersResource = new Zia.AdminUsers("adminUsersResource", new()
    {
        Email = "string",
        Username = "string",
        LoginName = "string",
        IsPasswordExpired = false,
        IsProductUpdateCommEnabled = false,
        IsAuditor = false,
        IsExecMobileAppEnabled = false,
        IsNonEditable = false,
        AdminScopeEntities = new[]
        {
            0,
        },
        IsPasswordLoginAllowed = false,
        Disabled = false,
        IsSecurityReportCommEnabled = false,
        IsServiceUpdateCommEnabled = false,
        Comments = "string",
        Password = "string",
        Role = new Zia.Inputs.AdminUserRoleInputArgs
        {
            Id = 0,
        },
        AdminScopeType = "string",
    });
    
    example, err := zia.NewAdminUsers(ctx, "adminUsersResource", &zia.AdminUsersArgs{
    	Email:                      pulumi.String("string"),
    	Username:                   pulumi.String("string"),
    	LoginName:                  pulumi.String("string"),
    	IsPasswordExpired:          pulumi.Bool(false),
    	IsProductUpdateCommEnabled: pulumi.Bool(false),
    	IsAuditor:                  pulumi.Bool(false),
    	IsExecMobileAppEnabled:     pulumi.Bool(false),
    	IsNonEditable:              pulumi.Bool(false),
    	AdminScopeEntities: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	IsPasswordLoginAllowed:      pulumi.Bool(false),
    	Disabled:                    pulumi.Bool(false),
    	IsSecurityReportCommEnabled: pulumi.Bool(false),
    	IsServiceUpdateCommEnabled:  pulumi.Bool(false),
    	Comments:                    pulumi.String("string"),
    	Password:                    pulumi.String("string"),
    	Role: &pulumizia.AdminUserRoleInputArgs{
    		Id: pulumi.Int(0),
    	},
    	AdminScopeType: pulumi.String("string"),
    })
    
    var adminUsersResource = new AdminUsers("adminUsersResource", AdminUsersArgs.builder()
        .email("string")
        .username("string")
        .loginName("string")
        .isPasswordExpired(false)
        .isProductUpdateCommEnabled(false)
        .isAuditor(false)
        .isExecMobileAppEnabled(false)
        .isNonEditable(false)
        .adminScopeEntities(0)
        .isPasswordLoginAllowed(false)
        .disabled(false)
        .isSecurityReportCommEnabled(false)
        .isServiceUpdateCommEnabled(false)
        .comments("string")
        .password("string")
        .role(AdminUserRoleInputArgs.builder()
            .id(0)
            .build())
        .adminScopeType("string")
        .build());
    
    admin_users_resource = zia.AdminUsers("adminUsersResource",
        email="string",
        username="string",
        login_name="string",
        is_password_expired=False,
        is_product_update_comm_enabled=False,
        is_auditor=False,
        is_exec_mobile_app_enabled=False,
        is_non_editable=False,
        admin_scope_entities=[0],
        is_password_login_allowed=False,
        disabled=False,
        is_security_report_comm_enabled=False,
        is_service_update_comm_enabled=False,
        comments="string",
        password="string",
        role={
            "id": 0,
        },
        admin_scope_type="string")
    
    const adminUsersResource = new zia.AdminUsers("adminUsersResource", {
        email: "string",
        username: "string",
        loginName: "string",
        isPasswordExpired: false,
        isProductUpdateCommEnabled: false,
        isAuditor: false,
        isExecMobileAppEnabled: false,
        isNonEditable: false,
        adminScopeEntities: [0],
        isPasswordLoginAllowed: false,
        disabled: false,
        isSecurityReportCommEnabled: false,
        isServiceUpdateCommEnabled: false,
        comments: "string",
        password: "string",
        role: {
            id: 0,
        },
        adminScopeType: "string",
    });
    
    type: zia:AdminUsers
    properties:
        adminScopeEntities:
            - 0
        adminScopeType: string
        comments: string
        disabled: false
        email: string
        isAuditor: false
        isExecMobileAppEnabled: false
        isNonEditable: false
        isPasswordExpired: false
        isPasswordLoginAllowed: false
        isProductUpdateCommEnabled: false
        isSecurityReportCommEnabled: false
        isServiceUpdateCommEnabled: false
        loginName: string
        password: string
        role:
            id: 0
        username: string
    

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

    Email string
    The admin user's email address.
    LoginName string
    The admin user's login name (email format). Must be unique.
    Username string
    The admin user's display name.
    AdminScopeEntities List<int>
    IDs of the admin scope entities (departments, locations, or location groups) when adminScopeType is not ORGANIZATION.
    AdminScopeType string
    The admin scope type. Valid values: ORGANIZATION, DEPARTMENT, LOCATION, LOCATION_GROUP.
    Comments string
    Additional information about the admin user.
    Disabled bool
    Whether the admin account is disabled.
    IsAuditor bool
    Indicates whether the admin is an auditor.
    IsExecMobileAppEnabled bool
    Whether Executive Insights App access is enabled. Can only be set when adminScopeType is ORGANIZATION.
    IsNonEditable bool
    Indicates whether the admin user is non-editable (read-only in the ZIA Admin Portal).
    IsPasswordExpired bool
    Indicates whether the admin user's password has expired.
    IsPasswordLoginAllowed bool
    Whether password-based login is allowed for the admin user.
    IsProductUpdateCommEnabled bool
    Whether the admin can receive product update communications.
    IsSecurityReportCommEnabled bool
    Whether the admin can receive security report communications.
    IsServiceUpdateCommEnabled bool
    Whether the admin can receive service update communications.
    Password string
    The admin user's password. Required when isPasswordLoginAllowed is true. Must be 8 to 100 characters.
    Role zscaler.PulumiPackage.Zia.Inputs.AdminUserRoleInput
    The role assigned to the admin user. Provide the role ID.
    Email string
    The admin user's email address.
    LoginName string
    The admin user's login name (email format). Must be unique.
    Username string
    The admin user's display name.
    AdminScopeEntities []int
    IDs of the admin scope entities (departments, locations, or location groups) when adminScopeType is not ORGANIZATION.
    AdminScopeType string
    The admin scope type. Valid values: ORGANIZATION, DEPARTMENT, LOCATION, LOCATION_GROUP.
    Comments string
    Additional information about the admin user.
    Disabled bool
    Whether the admin account is disabled.
    IsAuditor bool
    Indicates whether the admin is an auditor.
    IsExecMobileAppEnabled bool
    Whether Executive Insights App access is enabled. Can only be set when adminScopeType is ORGANIZATION.
    IsNonEditable bool
    Indicates whether the admin user is non-editable (read-only in the ZIA Admin Portal).
    IsPasswordExpired bool
    Indicates whether the admin user's password has expired.
    IsPasswordLoginAllowed bool
    Whether password-based login is allowed for the admin user.
    IsProductUpdateCommEnabled bool
    Whether the admin can receive product update communications.
    IsSecurityReportCommEnabled bool
    Whether the admin can receive security report communications.
    IsServiceUpdateCommEnabled bool
    Whether the admin can receive service update communications.
    Password string
    The admin user's password. Required when isPasswordLoginAllowed is true. Must be 8 to 100 characters.
    Role AdminUserRoleInputArgs
    The role assigned to the admin user. Provide the role ID.
    email String
    The admin user's email address.
    loginName String
    The admin user's login name (email format). Must be unique.
    username String
    The admin user's display name.
    adminScopeEntities List<Integer>
    IDs of the admin scope entities (departments, locations, or location groups) when adminScopeType is not ORGANIZATION.
    adminScopeType String
    The admin scope type. Valid values: ORGANIZATION, DEPARTMENT, LOCATION, LOCATION_GROUP.
    comments String
    Additional information about the admin user.
    disabled Boolean
    Whether the admin account is disabled.
    isAuditor Boolean
    Indicates whether the admin is an auditor.
    isExecMobileAppEnabled Boolean
    Whether Executive Insights App access is enabled. Can only be set when adminScopeType is ORGANIZATION.
    isNonEditable Boolean
    Indicates whether the admin user is non-editable (read-only in the ZIA Admin Portal).
    isPasswordExpired Boolean
    Indicates whether the admin user's password has expired.
    isPasswordLoginAllowed Boolean
    Whether password-based login is allowed for the admin user.
    isProductUpdateCommEnabled Boolean
    Whether the admin can receive product update communications.
    isSecurityReportCommEnabled Boolean
    Whether the admin can receive security report communications.
    isServiceUpdateCommEnabled Boolean
    Whether the admin can receive service update communications.
    password String
    The admin user's password. Required when isPasswordLoginAllowed is true. Must be 8 to 100 characters.
    role AdminUserRoleInput
    The role assigned to the admin user. Provide the role ID.
    email string
    The admin user's email address.
    loginName string
    The admin user's login name (email format). Must be unique.
    username string
    The admin user's display name.
    adminScopeEntities number[]
    IDs of the admin scope entities (departments, locations, or location groups) when adminScopeType is not ORGANIZATION.
    adminScopeType string
    The admin scope type. Valid values: ORGANIZATION, DEPARTMENT, LOCATION, LOCATION_GROUP.
    comments string
    Additional information about the admin user.
    disabled boolean
    Whether the admin account is disabled.
    isAuditor boolean
    Indicates whether the admin is an auditor.
    isExecMobileAppEnabled boolean
    Whether Executive Insights App access is enabled. Can only be set when adminScopeType is ORGANIZATION.
    isNonEditable boolean
    Indicates whether the admin user is non-editable (read-only in the ZIA Admin Portal).
    isPasswordExpired boolean
    Indicates whether the admin user's password has expired.
    isPasswordLoginAllowed boolean
    Whether password-based login is allowed for the admin user.
    isProductUpdateCommEnabled boolean
    Whether the admin can receive product update communications.
    isSecurityReportCommEnabled boolean
    Whether the admin can receive security report communications.
    isServiceUpdateCommEnabled boolean
    Whether the admin can receive service update communications.
    password string
    The admin user's password. Required when isPasswordLoginAllowed is true. Must be 8 to 100 characters.
    role AdminUserRoleInput
    The role assigned to the admin user. Provide the role ID.
    email str
    The admin user's email address.
    login_name str
    The admin user's login name (email format). Must be unique.
    username str
    The admin user's display name.
    admin_scope_entities Sequence[int]
    IDs of the admin scope entities (departments, locations, or location groups) when adminScopeType is not ORGANIZATION.
    admin_scope_type str
    The admin scope type. Valid values: ORGANIZATION, DEPARTMENT, LOCATION, LOCATION_GROUP.
    comments str
    Additional information about the admin user.
    disabled bool
    Whether the admin account is disabled.
    is_auditor bool
    Indicates whether the admin is an auditor.
    is_exec_mobile_app_enabled bool
    Whether Executive Insights App access is enabled. Can only be set when adminScopeType is ORGANIZATION.
    is_non_editable bool
    Indicates whether the admin user is non-editable (read-only in the ZIA Admin Portal).
    is_password_expired bool
    Indicates whether the admin user's password has expired.
    is_password_login_allowed bool
    Whether password-based login is allowed for the admin user.
    is_product_update_comm_enabled bool
    Whether the admin can receive product update communications.
    is_security_report_comm_enabled bool
    Whether the admin can receive security report communications.
    is_service_update_comm_enabled bool
    Whether the admin can receive service update communications.
    password str
    The admin user's password. Required when isPasswordLoginAllowed is true. Must be 8 to 100 characters.
    role AdminUserRoleInputArgs
    The role assigned to the admin user. Provide the role ID.
    email String
    The admin user's email address.
    loginName String
    The admin user's login name (email format). Must be unique.
    username String
    The admin user's display name.
    adminScopeEntities List<Number>
    IDs of the admin scope entities (departments, locations, or location groups) when adminScopeType is not ORGANIZATION.
    adminScopeType String
    The admin scope type. Valid values: ORGANIZATION, DEPARTMENT, LOCATION, LOCATION_GROUP.
    comments String
    Additional information about the admin user.
    disabled Boolean
    Whether the admin account is disabled.
    isAuditor Boolean
    Indicates whether the admin is an auditor.
    isExecMobileAppEnabled Boolean
    Whether Executive Insights App access is enabled. Can only be set when adminScopeType is ORGANIZATION.
    isNonEditable Boolean
    Indicates whether the admin user is non-editable (read-only in the ZIA Admin Portal).
    isPasswordExpired Boolean
    Indicates whether the admin user's password has expired.
    isPasswordLoginAllowed Boolean
    Whether password-based login is allowed for the admin user.
    isProductUpdateCommEnabled Boolean
    Whether the admin can receive product update communications.
    isSecurityReportCommEnabled Boolean
    Whether the admin can receive security report communications.
    isServiceUpdateCommEnabled Boolean
    Whether the admin can receive service update communications.
    password String
    The admin user's password. Required when isPasswordLoginAllowed is true. Must be 8 to 100 characters.
    role Property Map
    The role assigned to the admin user. Provide the role ID.

    Outputs

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

    AdminId int
    The system-generated ID of the admin user.
    Id string
    The provider-assigned unique ID for this managed resource.
    AdminId int
    The system-generated ID of the admin user.
    Id string
    The provider-assigned unique ID for this managed resource.
    adminId Integer
    The system-generated ID of the admin user.
    id String
    The provider-assigned unique ID for this managed resource.
    adminId number
    The system-generated ID of the admin user.
    id string
    The provider-assigned unique ID for this managed resource.
    admin_id int
    The system-generated ID of the admin user.
    id str
    The provider-assigned unique ID for this managed resource.
    adminId Number
    The system-generated ID of the admin user.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    AdminUserRoleInput, AdminUserRoleInputArgs

    Id int
    Id int
    id Integer
    id number
    id int
    id Number

    Import

    An existing admin user can be imported using its resource ID, e.g.

    $ pulumi import zia:index:AdminUsers example 12345
    

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

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.