GetUser

Use this data source to retrieve a users from Okta.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Okta.User.GetUser.InvokeAsync(new Okta.User.GetUserArgs
        {
            Searches = 
            {
                new Okta.User.Inputs.GetUserSearchArgs
                {
                    Name = "profile.firstName",
                    Value = "John",
                },
                new Okta.User.Inputs.GetUserSearchArgs
                {
                    Name = "profile.lastName",
                    Value = "Doe",
                },
            },
        }));
    }

}

Coming soon!

import pulumi
import pulumi_okta as okta

example = okta.user.get_user(searches=[
    {
        "name": "profile.firstName",
        "value": "John",
    },
    {
        "name": "profile.lastName",
        "value": "Doe",
    },
])
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = pulumi.output(okta.user.getUser({
    searches: [
        {
            name: "profile.firstName",
            value: "John",
        },
        {
            name: "profile.lastName",
            value: "Doe",
        },
    ],
}, { async: true }));

Using GetUser

function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function  get_user(searches=None, opts=None)
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)

Note: This function is named LookupUser in the Go SDK.

public static class GetUser {
    public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Searches List<GetUserSearchArgs>

Map of search criteria. It supports the following properties.

Searches []GetUserSearch

Map of search criteria. It supports the following properties.

searches GetUserSearch[]

Map of search criteria. It supports the following properties.

searches List[GetUserSearch]

Map of search criteria. It supports the following properties.

GetUser Result

The following output properties are available:

AdminRoles List<string>

Administrator roles assigned to user.

City string

user profile property.

CostCenter string

user profile property.

CountryCode string

user profile property.

CustomProfileAttributes string

raw JSON containing all custom profile attributes.

Department string

user profile property.

DisplayName string

user profile property.

Division string

user profile property.

Email string

user profile property.

EmployeeNumber string

user profile property.

FirstName string

user profile property.

GroupMemberships List<string>

user profile property.

HonorificPrefix string

user profile property.

HonorificSuffix string

user profile property.

Id string

The provider-assigned unique ID for this managed resource.

LastName string

user profile property.

Locale string

user profile property.

Login string

user profile property.

Manager string

user profile property.

ManagerId string

user profile property.

MiddleName string

user profile property.

MobilePhone string

user profile property.

NickName string

user profile property.

Organization string

user profile property.

PostalAddress string

user profile property.

PreferredLanguage string

user profile property.

PrimaryPhone string

user profile property.

ProfileUrl string

user profile property.

Searches List<GetUserSearch>
SecondEmail string

user profile property.

State string

user profile property.

Status string

user profile property.

StreetAddress string

user profile property.

Timezone string

user profile property.

Title string

user profile property.

UserType string

user profile property.

ZipCode string

user profile property.

AdminRoles []string

Administrator roles assigned to user.

City string

user profile property.

CostCenter string

user profile property.

CountryCode string

user profile property.

CustomProfileAttributes string

raw JSON containing all custom profile attributes.

Department string

user profile property.

DisplayName string

user profile property.

Division string

user profile property.

Email string

user profile property.

EmployeeNumber string

user profile property.

FirstName string

user profile property.

GroupMemberships []string

user profile property.

HonorificPrefix string

user profile property.

HonorificSuffix string

user profile property.

Id string

The provider-assigned unique ID for this managed resource.

LastName string

user profile property.

Locale string

user profile property.

Login string

user profile property.

Manager string

user profile property.

ManagerId string

user profile property.

MiddleName string

user profile property.

MobilePhone string

user profile property.

NickName string

user profile property.

Organization string

user profile property.

PostalAddress string

user profile property.

PreferredLanguage string

user profile property.

PrimaryPhone string

user profile property.

ProfileUrl string

user profile property.

Searches []GetUserSearch
SecondEmail string

user profile property.

State string

user profile property.

Status string

user profile property.

StreetAddress string

user profile property.

Timezone string

user profile property.

Title string

user profile property.

UserType string

user profile property.

ZipCode string

user profile property.

adminRoles string[]

Administrator roles assigned to user.

city string

user profile property.

costCenter string

user profile property.

countryCode string

user profile property.

customProfileAttributes string

raw JSON containing all custom profile attributes.

department string

user profile property.

displayName string

user profile property.

division string

user profile property.

email string

user profile property.

employeeNumber string

user profile property.

firstName string

user profile property.

groupMemberships string[]

user profile property.

honorificPrefix string

user profile property.

honorificSuffix string

user profile property.

id string

The provider-assigned unique ID for this managed resource.

lastName string

user profile property.

locale string

user profile property.

login string

user profile property.

manager string

user profile property.

managerId string

user profile property.

middleName string

user profile property.

mobilePhone string

user profile property.

nickName string

user profile property.

organization string

user profile property.

postalAddress string

user profile property.

preferredLanguage string

user profile property.

primaryPhone string

user profile property.

profileUrl string

user profile property.

searches GetUserSearch[]
secondEmail string

user profile property.

state string

user profile property.

status string

user profile property.

streetAddress string

user profile property.

timezone string

user profile property.

title string

user profile property.

userType string

user profile property.

zipCode string

user profile property.

admin_roles List[str]

Administrator roles assigned to user.

city str

user profile property.

cost_center str

user profile property.

country_code str

user profile property.

custom_profile_attributes str

raw JSON containing all custom profile attributes.

department str

user profile property.

display_name str

user profile property.

division str

user profile property.

email str

user profile property.

employee_number str

user profile property.

first_name str

user profile property.

group_memberships List[str]

user profile property.

honorific_prefix str

user profile property.

honorific_suffix str

user profile property.

id str

The provider-assigned unique ID for this managed resource.

last_name str

user profile property.

locale str

user profile property.

login str

user profile property.

manager str

user profile property.

manager_id str

user profile property.

middle_name str

user profile property.

mobile_phone str

user profile property.

nick_name str

user profile property.

organization str

user profile property.

postal_address str

user profile property.

preferred_language str

user profile property.

primary_phone str

user profile property.

profile_url str

user profile property.

searches List[GetUserSearch]
second_email str

user profile property.

state str

user profile property.

status str

user profile property.

street_address str

user profile property.

timezone str

user profile property.

title str

user profile property.

user_type str

user profile property.

zip_code str

user profile property.

Supporting Types

GetUserSearch

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

Name of property to search against.

Value string

Value to compare with.

Comparison string

Comparison to use.

Name string

Name of property to search against.

Value string

Value to compare with.

Comparison string

Comparison to use.

name string

Name of property to search against.

value string

Value to compare with.

comparison string

Comparison to use.

name str

Name of property to search against.

value str

Value to compare with.

comparison str

Comparison to use.

Package Details

Repository
https://github.com/pulumi/pulumi-okta
License
Apache-2.0
Notes
This Pulumi package is based on the okta Terraform Provider.