Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler
zia.getAdminUsers
Explore with Pulumi AI
Use the zia_admin_users data source to get information about an admin user account created in the Zscaler Internet Access cloud or via the API. This data source can then be associated with a ZIA administrator role.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@pulumi/zia";
const johnDoe = zia.getAdminUsers({
loginName: "john.doe@example.com",
});
import pulumi
import pulumi_zia as zia
john_doe = zia.get_admin_users(login_name="john.doe@example.com")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zia.LookupAdminUsers(ctx, &zia.LookupAdminUsersArgs{
LoginName: pulumi.StringRef("john.doe@example.com"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = Pulumi.Zia;
return await Deployment.RunAsync(() =>
{
var johnDoe = Zia.GetAdminUsers.Invoke(new()
{
LoginName = "john.doe@example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.ZiaFunctions;
import com.pulumi.zia.inputs.GetAdminUsersArgs;
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 johnDoe = ZiaFunctions.getAdminUsers(GetAdminUsersArgs.builder()
.loginName("john.doe@example.com")
.build());
}
}
variables:
johnDoe:
fn::invoke:
Function: zia:getAdminUsers
Arguments:
loginName: john.doe@example.com
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@pulumi/zia";
const johnDoe = zia.getAdminUsers({
username: "John Doe",
});
import pulumi
import pulumi_zia as zia
john_doe = zia.get_admin_users(username="John Doe")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zia.LookupAdminUsers(ctx, &zia.LookupAdminUsersArgs{
Username: pulumi.StringRef("John Doe"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = Pulumi.Zia;
return await Deployment.RunAsync(() =>
{
var johnDoe = Zia.GetAdminUsers.Invoke(new()
{
Username = "John Doe",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.ZiaFunctions;
import com.pulumi.zia.inputs.GetAdminUsersArgs;
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 johnDoe = ZiaFunctions.getAdminUsers(GetAdminUsersArgs.builder()
.username("John Doe")
.build());
}
}
variables:
johnDoe:
fn::invoke:
Function: zia:getAdminUsers
Arguments:
username: John Doe
Using getAdminUsers
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAdminUsers(args: GetAdminUsersArgs, opts?: InvokeOptions): Promise<GetAdminUsersResult>
function getAdminUsersOutput(args: GetAdminUsersOutputArgs, opts?: InvokeOptions): Output<GetAdminUsersResult>
def get_admin_users(id: Optional[int] = None,
login_name: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAdminUsersResult
def get_admin_users_output(id: Optional[pulumi.Input[int]] = None,
login_name: Optional[pulumi.Input[str]] = None,
username: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAdminUsersResult]
func LookupAdminUsers(ctx *Context, args *LookupAdminUsersArgs, opts ...InvokeOption) (*LookupAdminUsersResult, error)
func LookupAdminUsersOutput(ctx *Context, args *LookupAdminUsersOutputArgs, opts ...InvokeOption) LookupAdminUsersResultOutput
> Note: This function is named LookupAdminUsers
in the Go SDK.
public static class GetAdminUsers
{
public static Task<GetAdminUsersResult> InvokeAsync(GetAdminUsersArgs args, InvokeOptions? opts = null)
public static Output<GetAdminUsersResult> Invoke(GetAdminUsersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAdminUsersResult> getAdminUsers(GetAdminUsersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zia:index/getAdminUsers:getAdminUsers
arguments:
# arguments dictionary
The following arguments are supported:
- id int
- The ID of the admin user to be exported.
- login_
name str - The email address of the admin user to be exported.
- username str
- The username of the admin user to be exported.
getAdminUsers Result
The following output properties are available:
- Admin
Scopes List<zscaler.Pulumi Package. Zia. Outputs. Get Admin Users Admin Scope> - (Set of Object) The admin's scope. Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- Comments string
- (String) Additional information about the admin or auditor.
- Disabled bool
- (Boolean) Indicates whether or not the admin account is disabled.
- Email string
- (String) Admin or auditor's email address.
- Exec
Mobile List<zscaler.App Tokens Pulumi Package. Zia. Outputs. Get Admin Users Exec Mobile App Token> - (List of Object)
- Id int
- (Number) Identifier that uniquely identifies an entity
- Is
Auditor bool - (Boolean) Indicates whether the user is an auditor. This attribute is subject to change.
- Is
Exec boolMobile App Enabled - (Boolean) Indicates whether or not Executive Insights App access is enabled for the admin.
- Is
Non boolEditable - (Boolean) Indicates whether or not the admin can be edited or deleted.
- Is
Password boolExpired - (Boolean) Indicates whether or not an admin's password has expired.
- Is
Password boolLogin Allowed - (Boolean) The default is true when SAML Authentication is disabled. When SAML Authentication is enabled, this can be set to false in order to force the admin to login via SSO only.
- Is
Product boolUpdate Comm Enabled - (Boolean) Communication setting for Product Update.
- Is
Security boolReport Comm Enabled - (Boolean) Communication for Security Report is enabled.
- Is
Service boolUpdate Comm Enabled - (Boolean) Communication setting for Service Update.
- Login
Name string - Pwd
Last intModified Time - Roles
List<zscaler.
Pulumi Package. Zia. Outputs. Get Admin Users Role> - (Set of Object) Role of the admin. This is not required for an auditor.
- Username string
- Admin
Scopes []GetAdmin Users Admin Scope - (Set of Object) The admin's scope. Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- Comments string
- (String) Additional information about the admin or auditor.
- Disabled bool
- (Boolean) Indicates whether or not the admin account is disabled.
- Email string
- (String) Admin or auditor's email address.
- Exec
Mobile []GetApp Tokens Admin Users Exec Mobile App Token - (List of Object)
- Id int
- (Number) Identifier that uniquely identifies an entity
- Is
Auditor bool - (Boolean) Indicates whether the user is an auditor. This attribute is subject to change.
- Is
Exec boolMobile App Enabled - (Boolean) Indicates whether or not Executive Insights App access is enabled for the admin.
- Is
Non boolEditable - (Boolean) Indicates whether or not the admin can be edited or deleted.
- Is
Password boolExpired - (Boolean) Indicates whether or not an admin's password has expired.
- Is
Password boolLogin Allowed - (Boolean) The default is true when SAML Authentication is disabled. When SAML Authentication is enabled, this can be set to false in order to force the admin to login via SSO only.
- Is
Product boolUpdate Comm Enabled - (Boolean) Communication setting for Product Update.
- Is
Security boolReport Comm Enabled - (Boolean) Communication for Security Report is enabled.
- Is
Service boolUpdate Comm Enabled - (Boolean) Communication setting for Service Update.
- Login
Name string - Pwd
Last intModified Time - Roles
[]Get
Admin Users Role - (Set of Object) Role of the admin. This is not required for an auditor.
- Username string
- admin
Scopes List<GetAdmin Users Admin Scope> - (Set of Object) The admin's scope. Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- comments String
- (String) Additional information about the admin or auditor.
- disabled Boolean
- (Boolean) Indicates whether or not the admin account is disabled.
- email String
- (String) Admin or auditor's email address.
- exec
Mobile List<GetApp Tokens Admin Users Exec Mobile App Token> - (List of Object)
- id Integer
- (Number) Identifier that uniquely identifies an entity
- is
Auditor Boolean - (Boolean) Indicates whether the user is an auditor. This attribute is subject to change.
- is
Exec BooleanMobile App Enabled - (Boolean) Indicates whether or not Executive Insights App access is enabled for the admin.
- is
Non BooleanEditable - (Boolean) Indicates whether or not the admin can be edited or deleted.
- is
Password BooleanExpired - (Boolean) Indicates whether or not an admin's password has expired.
- is
Password BooleanLogin Allowed - (Boolean) The default is true when SAML Authentication is disabled. When SAML Authentication is enabled, this can be set to false in order to force the admin to login via SSO only.
- is
Product BooleanUpdate Comm Enabled - (Boolean) Communication setting for Product Update.
- is
Security BooleanReport Comm Enabled - (Boolean) Communication for Security Report is enabled.
- is
Service BooleanUpdate Comm Enabled - (Boolean) Communication setting for Service Update.
- login
Name String - pwd
Last IntegerModified Time - roles
List<Get
Admin Users Role> - (Set of Object) Role of the admin. This is not required for an auditor.
- username String
- admin
Scopes GetAdmin Users Admin Scope[] - (Set of Object) The admin's scope. Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- comments string
- (String) Additional information about the admin or auditor.
- disabled boolean
- (Boolean) Indicates whether or not the admin account is disabled.
- email string
- (String) Admin or auditor's email address.
- exec
Mobile GetApp Tokens Admin Users Exec Mobile App Token[] - (List of Object)
- id number
- (Number) Identifier that uniquely identifies an entity
- is
Auditor boolean - (Boolean) Indicates whether the user is an auditor. This attribute is subject to change.
- is
Exec booleanMobile App Enabled - (Boolean) Indicates whether or not Executive Insights App access is enabled for the admin.
- is
Non booleanEditable - (Boolean) Indicates whether or not the admin can be edited or deleted.
- is
Password booleanExpired - (Boolean) Indicates whether or not an admin's password has expired.
- is
Password booleanLogin Allowed - (Boolean) The default is true when SAML Authentication is disabled. When SAML Authentication is enabled, this can be set to false in order to force the admin to login via SSO only.
- is
Product booleanUpdate Comm Enabled - (Boolean) Communication setting for Product Update.
- is
Security booleanReport Comm Enabled - (Boolean) Communication for Security Report is enabled.
- is
Service booleanUpdate Comm Enabled - (Boolean) Communication setting for Service Update.
- login
Name string - pwd
Last numberModified Time - roles
Get
Admin Users Role[] - (Set of Object) Role of the admin. This is not required for an auditor.
- username string
- admin_
scopes Sequence[GetAdmin Users Admin Scope] - (Set of Object) The admin's scope. Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- comments str
- (String) Additional information about the admin or auditor.
- disabled bool
- (Boolean) Indicates whether or not the admin account is disabled.
- email str
- (String) Admin or auditor's email address.
- exec_
mobile_ Sequence[Getapp_ tokens Admin Users Exec Mobile App Token] - (List of Object)
- id int
- (Number) Identifier that uniquely identifies an entity
- is_
auditor bool - (Boolean) Indicates whether the user is an auditor. This attribute is subject to change.
- is_
exec_ boolmobile_ app_ enabled - (Boolean) Indicates whether or not Executive Insights App access is enabled for the admin.
- is_
non_ booleditable - (Boolean) Indicates whether or not the admin can be edited or deleted.
- is_
password_ boolexpired - (Boolean) Indicates whether or not an admin's password has expired.
- is_
password_ boollogin_ allowed - (Boolean) The default is true when SAML Authentication is disabled. When SAML Authentication is enabled, this can be set to false in order to force the admin to login via SSO only.
- is_
product_ boolupdate_ comm_ enabled - (Boolean) Communication setting for Product Update.
- is_
security_ boolreport_ comm_ enabled - (Boolean) Communication for Security Report is enabled.
- is_
service_ boolupdate_ comm_ enabled - (Boolean) Communication setting for Service Update.
- login_
name str - pwd_
last_ intmodified_ time - roles
Sequence[Get
Admin Users Role] - (Set of Object) Role of the admin. This is not required for an auditor.
- username str
- admin
Scopes List<Property Map> - (Set of Object) The admin's scope. Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- comments String
- (String) Additional information about the admin or auditor.
- disabled Boolean
- (Boolean) Indicates whether or not the admin account is disabled.
- email String
- (String) Admin or auditor's email address.
- exec
Mobile List<Property Map>App Tokens - (List of Object)
- id Number
- (Number) Identifier that uniquely identifies an entity
- is
Auditor Boolean - (Boolean) Indicates whether the user is an auditor. This attribute is subject to change.
- is
Exec BooleanMobile App Enabled - (Boolean) Indicates whether or not Executive Insights App access is enabled for the admin.
- is
Non BooleanEditable - (Boolean) Indicates whether or not the admin can be edited or deleted.
- is
Password BooleanExpired - (Boolean) Indicates whether or not an admin's password has expired.
- is
Password BooleanLogin Allowed - (Boolean) The default is true when SAML Authentication is disabled. When SAML Authentication is enabled, this can be set to false in order to force the admin to login via SSO only.
- is
Product BooleanUpdate Comm Enabled - (Boolean) Communication setting for Product Update.
- is
Security BooleanReport Comm Enabled - (Boolean) Communication for Security Report is enabled.
- is
Service BooleanUpdate Comm Enabled - (Boolean) Communication setting for Service Update.
- login
Name String - pwd
Last NumberModified Time - roles List<Property Map>
- (Set of Object) Role of the admin. This is not required for an auditor.
- username String
Supporting Types
GetAdminUsersAdminScope
- Scope
Entities List<zscaler.Pulumi Package. Zia. Inputs. Get Admin Users Admin Scope Scope Entity> - (String) Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups.
- Scope
Group List<zscaler.Member Entities Pulumi Package. Zia. Inputs. Get Admin Users Admin Scope Scope Group Member Entity> - (Number) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- Type string
- (String) The admin scope type. The attribute name is subject to change.
- Scope
Entities []GetAdmin Users Admin Scope Scope Entity - (String) Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups.
- Scope
Group []GetMember Entities Admin Users Admin Scope Scope Group Member Entity - (Number) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- Type string
- (String) The admin scope type. The attribute name is subject to change.
- scope
Entities List<GetAdmin Users Admin Scope Scope Entity> - (String) Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups.
- scope
Group List<GetMember Entities Admin Users Admin Scope Scope Group Member Entity> - (Number) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- type String
- (String) The admin scope type. The attribute name is subject to change.
- scope
Entities GetAdmin Users Admin Scope Scope Entity[] - (String) Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups.
- scope
Group GetMember Entities Admin Users Admin Scope Scope Group Member Entity[] - (Number) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- type string
- (String) The admin scope type. The attribute name is subject to change.
- scope_
entities Sequence[GetAdmin Users Admin Scope Scope Entity] - (String) Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups.
- scope_
group_ Sequence[Getmember_ entities Admin Users Admin Scope Scope Group Member Entity] - (Number) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- type str
- (String) The admin scope type. The attribute name is subject to change.
- scope
Entities List<Property Map> - (String) Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups.
- scope
Group List<Property Map>Member Entities - (Number) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group.
- type String
- (String) The admin scope type. The attribute name is subject to change.
GetAdminUsersAdminScopeScopeEntity
- Extensions Dictionary<string, string>
- Id int
- The ID of the admin user to be exported.
- Name string
- (String)
- Extensions map[string]string
- Id int
- The ID of the admin user to be exported.
- Name string
- (String)
- extensions Map<String,String>
- id Integer
- The ID of the admin user to be exported.
- name String
- (String)
- extensions {[key: string]: string}
- id number
- The ID of the admin user to be exported.
- name string
- (String)
- extensions Mapping[str, str]
- id int
- The ID of the admin user to be exported.
- name str
- (String)
- extensions Map<String>
- id Number
- The ID of the admin user to be exported.
- name String
- (String)
GetAdminUsersAdminScopeScopeGroupMemberEntity
- Extensions Dictionary<string, string>
- Id int
- The ID of the admin user to be exported.
- Name string
- (String)
- Extensions map[string]string
- Id int
- The ID of the admin user to be exported.
- Name string
- (String)
- extensions Map<String,String>
- id Integer
- The ID of the admin user to be exported.
- name String
- (String)
- extensions {[key: string]: string}
- id number
- The ID of the admin user to be exported.
- name string
- (String)
- extensions Mapping[str, str]
- id int
- The ID of the admin user to be exported.
- name str
- (String)
- extensions Map<String>
- id Number
- The ID of the admin user to be exported.
- name String
- (String)
GetAdminUsersExecMobileAppToken
- Cloud string
- (String)
- Create
Time int - (Number)
- Device
Id string - (String)
- Device
Name string - (String)
- Name string
- (String)
- Org
Id int - (Number)
- Token string
- (String)
- Token
Expiry int - (Number)
- Token
Id string - (String)
- Cloud string
- (String)
- Create
Time int - (Number)
- Device
Id string - (String)
- Device
Name string - (String)
- Name string
- (String)
- Org
Id int - (Number)
- Token string
- (String)
- Token
Expiry int - (Number)
- Token
Id string - (String)
- cloud String
- (String)
- create
Time Integer - (Number)
- device
Id String - (String)
- device
Name String - (String)
- name String
- (String)
- org
Id Integer - (Number)
- token String
- (String)
- token
Expiry Integer - (Number)
- token
Id String - (String)
- cloud string
- (String)
- create
Time number - (Number)
- device
Id string - (String)
- device
Name string - (String)
- name string
- (String)
- org
Id number - (Number)
- token string
- (String)
- token
Expiry number - (Number)
- token
Id string - (String)
- cloud str
- (String)
- create_
time int - (Number)
- device_
id str - (String)
- device_
name str - (String)
- name str
- (String)
- org_
id int - (Number)
- token str
- (String)
- token_
expiry int - (Number)
- token_
id str - (String)
- cloud String
- (String)
- create
Time Number - (Number)
- device
Id String - (String)
- device
Name String - (String)
- name String
- (String)
- org
Id Number - (Number)
- token String
- (String)
- token
Expiry Number - (Number)
- token
Id String - (String)
GetAdminUsersRole
- Extensions Dictionary<string, string>
- Id int
- The ID of the admin user to be exported.
- Name string
- (String)
- Extensions map[string]string
- Id int
- The ID of the admin user to be exported.
- Name string
- (String)
- extensions Map<String,String>
- id Integer
- The ID of the admin user to be exported.
- name String
- (String)
- extensions {[key: string]: string}
- id number
- The ID of the admin user to be exported.
- name string
- (String)
- extensions Mapping[str, str]
- id int
- The ID of the admin user to be exported.
- name str
- (String)
- extensions Map<String>
- id Number
- The ID of the admin user to be exported.
- name String
- (String)
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.