Zscaler Internet Access v0.0.6 published on Wednesday, Apr 10, 2024 by Zscaler
zia.getUserManagement
Explore with Pulumi AI
Use the zia_user_management data source to get information about a user account that may have been created in the Zscaler Internet Access portal or via API. This data source can then be associated with a ZIA cloud firewall filtering rule, and URL filtering rules.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@pulumi/zia";
const adamAshcroft = zia.getUserManagement({
name: "Adam Ashcroft",
});
import pulumi
import pulumi_zia as zia
adam_ashcroft = zia.get_user_management(name="Adam Ashcroft")
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.LookupUserManagement(ctx, &zia.LookupUserManagementArgs{
Name: pulumi.StringRef("Adam Ashcroft"),
}, 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 adamAshcroft = Zia.GetUserManagement.Invoke(new()
{
Name = "Adam Ashcroft",
});
});
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.GetUserManagementArgs;
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 adamAshcroft = ZiaFunctions.getUserManagement(GetUserManagementArgs.builder()
.name("Adam Ashcroft")
.build());
}
}
variables:
adamAshcroft:
fn::invoke:
Function: zia:getUserManagement
Arguments:
name: Adam Ashcroft
Using getUserManagement
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 getUserManagement(args: GetUserManagementArgs, opts?: InvokeOptions): Promise<GetUserManagementResult>
function getUserManagementOutput(args: GetUserManagementOutputArgs, opts?: InvokeOptions): Output<GetUserManagementResult>
def get_user_management(auth_methods: Optional[Sequence[str]] = None,
id: Optional[int] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserManagementResult
def get_user_management_output(auth_methods: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserManagementResult]
func LookupUserManagement(ctx *Context, args *LookupUserManagementArgs, opts ...InvokeOption) (*LookupUserManagementResult, error)
func LookupUserManagementOutput(ctx *Context, args *LookupUserManagementOutputArgs, opts ...InvokeOption) LookupUserManagementResultOutput
> Note: This function is named LookupUserManagement
in the Go SDK.
public static class GetUserManagement
{
public static Task<GetUserManagementResult> InvokeAsync(GetUserManagementArgs args, InvokeOptions? opts = null)
public static Output<GetUserManagementResult> Invoke(GetUserManagementInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserManagementResult> getUserManagement(GetUserManagementArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zia:index/getUserManagement:getUserManagement
arguments:
# arguments dictionary
The following arguments are supported:
- Auth
Methods List<string> - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- Id int
- The ID of the time window resource.
- Name string
- User name. This appears when choosing users for policies.
- Auth
Methods []string - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- Id int
- The ID of the time window resource.
- Name string
- User name. This appears when choosing users for policies.
- auth
Methods List<String> - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id Integer
- The ID of the time window resource.
- name String
- User name. This appears when choosing users for policies.
- auth
Methods string[] - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id number
- The ID of the time window resource.
- name string
- User name. This appears when choosing users for policies.
- auth_
methods Sequence[str] - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id int
- The ID of the time window resource.
- name str
- User name. This appears when choosing users for policies.
- auth
Methods List<String> - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id Number
- The ID of the time window resource.
- name String
- User name. This appears when choosing users for policies.
getUserManagement Result
The following output properties are available:
- Admin
User bool - (String) True if this user is an Admin user. readOnly:
true
default:false
- Comments string
- (String) Additional information about the group
- Departments
List<zscaler.
Pulumi Package. Zia. Outputs. Get User Management Department> - (String) Department a user belongs to
- Email string
- (Required) User email consists of a user name and domain name. It does not have to be a valid email address, but it must be unique and its domain must belong to the organization
- Groups
List<zscaler.
Pulumi Package. Zia. Outputs. Get User Management Group> - (String) List of Groups a user belongs to. Groups are used in policies.
- Is
Auditor string - Temp
Auth stringEmail - (String) Temporary Authentication Email. If you enabled one-time tokens or links, enter the email address to which the Zscaler service sends the tokens or links. If this is empty, the service will send the email to the User email.
- Type string
- (String) User type. Provided only if this user is not an end user. The supported types are:
- Auth
Methods List<string> - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- Id int
- (Number) Unique identfier for the group
- Name string
- (String) Group name
- Admin
User bool - (String) True if this user is an Admin user. readOnly:
true
default:false
- Comments string
- (String) Additional information about the group
- Departments
[]Get
User Management Department - (String) Department a user belongs to
- Email string
- (Required) User email consists of a user name and domain name. It does not have to be a valid email address, but it must be unique and its domain must belong to the organization
- Groups
[]Get
User Management Group - (String) List of Groups a user belongs to. Groups are used in policies.
- Is
Auditor string - Temp
Auth stringEmail - (String) Temporary Authentication Email. If you enabled one-time tokens or links, enter the email address to which the Zscaler service sends the tokens or links. If this is empty, the service will send the email to the User email.
- Type string
- (String) User type. Provided only if this user is not an end user. The supported types are:
- Auth
Methods []string - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- Id int
- (Number) Unique identfier for the group
- Name string
- (String) Group name
- admin
User Boolean - (String) True if this user is an Admin user. readOnly:
true
default:false
- comments String
- (String) Additional information about the group
- departments
List<Get
User Management Department> - (String) Department a user belongs to
- email String
- (Required) User email consists of a user name and domain name. It does not have to be a valid email address, but it must be unique and its domain must belong to the organization
- groups
List<Get
User Management Group> - (String) List of Groups a user belongs to. Groups are used in policies.
- is
Auditor String - temp
Auth StringEmail - (String) Temporary Authentication Email. If you enabled one-time tokens or links, enter the email address to which the Zscaler service sends the tokens or links. If this is empty, the service will send the email to the User email.
- type String
- (String) User type. Provided only if this user is not an end user. The supported types are:
- auth
Methods List<String> - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id Integer
- (Number) Unique identfier for the group
- name String
- (String) Group name
- admin
User boolean - (String) True if this user is an Admin user. readOnly:
true
default:false
- comments string
- (String) Additional information about the group
- departments
Get
User Management Department[] - (String) Department a user belongs to
- email string
- (Required) User email consists of a user name and domain name. It does not have to be a valid email address, but it must be unique and its domain must belong to the organization
- groups
Get
User Management Group[] - (String) List of Groups a user belongs to. Groups are used in policies.
- is
Auditor string - temp
Auth stringEmail - (String) Temporary Authentication Email. If you enabled one-time tokens or links, enter the email address to which the Zscaler service sends the tokens or links. If this is empty, the service will send the email to the User email.
- type string
- (String) User type. Provided only if this user is not an end user. The supported types are:
- auth
Methods string[] - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id number
- (Number) Unique identfier for the group
- name string
- (String) Group name
- admin_
user bool - (String) True if this user is an Admin user. readOnly:
true
default:false
- comments str
- (String) Additional information about the group
- departments
Sequence[Get
User Management Department] - (String) Department a user belongs to
- email str
- (Required) User email consists of a user name and domain name. It does not have to be a valid email address, but it must be unique and its domain must belong to the organization
- groups
Sequence[Get
User Management Group] - (String) List of Groups a user belongs to. Groups are used in policies.
- is_
auditor str - temp_
auth_ stremail - (String) Temporary Authentication Email. If you enabled one-time tokens or links, enter the email address to which the Zscaler service sends the tokens or links. If this is empty, the service will send the email to the User email.
- type str
- (String) User type. Provided only if this user is not an end user. The supported types are:
- auth_
methods Sequence[str] - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id int
- (Number) Unique identfier for the group
- name str
- (String) Group name
- admin
User Boolean - (String) True if this user is an Admin user. readOnly:
true
default:false
- comments String
- (String) Additional information about the group
- departments List<Property Map>
- (String) Department a user belongs to
- email String
- (Required) User email consists of a user name and domain name. It does not have to be a valid email address, but it must be unique and its domain must belong to the organization
- groups List<Property Map>
- (String) List of Groups a user belongs to. Groups are used in policies.
- is
Auditor String - temp
Auth StringEmail - (String) Temporary Authentication Email. If you enabled one-time tokens or links, enter the email address to which the Zscaler service sends the tokens or links. If this is empty, the service will send the email to the User email.
- type String
- (String) User type. Provided only if this user is not an end user. The supported types are:
- auth
Methods List<String> - (String) Type of authentication method to be enabled. Supported values are:
BASIC
andDIGEST
- id Number
- (Number) Unique identfier for the group
- name String
- (String) Group name
Supporting Types
GetUserManagementDepartment
GetUserManagementGroup
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.