onelogin

v0.3.0 published on Wednesday, Jun 1, 2022 by Pulumi

getUsers

Returns User IDs matching the given attributes.

Example Usage

using Pulumi;
using Onelogin = Pulumi.Onelogin;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Onelogin.GetUsers.InvokeAsync(new Onelogin.GetUsersArgs
        {
            Firstname = "tom",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-onelogin/sdk/go/onelogin"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := onelogin.GetUsers(ctx, &GetUsersArgs{
			Firstname: pulumi.StringRef("tom"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_onelogin as onelogin

example = onelogin.get_users(firstname="tom")
import * as pulumi from "@pulumi/pulumi";
import * as onelogin from "@pulumi/onelogin";

const example = pulumi.output(onelogin.getUsers({
    firstname: "tom",
}));

Coming soon!

Using getUsers

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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOptions): Output<GetUsersResult>
def get_users(directory_id: Optional[int] = None,
              external_id: Optional[int] = None,
              firstname: Optional[str] = None,
              lastname: Optional[str] = None,
              samaccountname: Optional[str] = None,
              user_id: Optional[str] = None,
              username: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(directory_id: Optional[pulumi.Input[int]] = None,
              external_id: Optional[pulumi.Input[int]] = None,
              firstname: Optional[pulumi.Input[str]] = None,
              lastname: Optional[pulumi.Input[str]] = None,
              samaccountname: Optional[pulumi.Input[str]] = None,
              user_id: Optional[pulumi.Input[str]] = None,
              username: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]
func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput

> Note: This function is named GetUsers in the Go SDK.

public static class GetUsers 
{
    public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
    public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: onelogin:index/getUsers:getUsers
  arguments:
    # arguments dictionary

The following arguments are supported:

DirectoryId int

The user's directory_id

ExternalId int

The user's external_id

Firstname string

The user's first name

Lastname string

The user's last name

Samaccountname string

The user's samaccount name

UserId string
Username string

The user's username.

DirectoryId int

The user's directory_id

ExternalId int

The user's external_id

Firstname string

The user's first name

Lastname string

The user's last name

Samaccountname string

The user's samaccount name

UserId string
Username string

The user's username.

directoryId Integer

The user's directory_id

externalId Integer

The user's external_id

firstname String

The user's first name

lastname String

The user's last name

samaccountname String

The user's samaccount name

userId String
username String

The user's username.

directoryId number

The user's directory_id

externalId number

The user's external_id

firstname string

The user's first name

lastname string

The user's last name

samaccountname string

The user's samaccount name

userId string
username string

The user's username.

directory_id int

The user's directory_id

external_id int

The user's external_id

firstname str

The user's first name

lastname str

The user's last name

samaccountname str

The user's samaccount name

user_id str
username str

The user's username.

directoryId Number

The user's directory_id

externalId Number

The user's external_id

firstname String

The user's first name

lastname String

The user's last name

samaccountname String

The user's samaccount name

userId String
username String

The user's username.

getUsers Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

List of user's id

DirectoryId int
ExternalId int
Firstname string
Lastname string
Samaccountname string
UserId string
Username string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

List of user's id

DirectoryId int
ExternalId int
Firstname string
Lastname string
Samaccountname string
UserId string
Username string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

List of user's id

directoryId Integer
externalId Integer
firstname String
lastname String
samaccountname String
userId String
username String
id string

The provider-assigned unique ID for this managed resource.

ids string[]

List of user's id

directoryId number
externalId number
firstname string
lastname string
samaccountname string
userId string
username string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

List of user's id

directory_id int
external_id int
firstname str
lastname str
samaccountname str
user_id str
username str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

List of user's id

directoryId Number
externalId Number
firstname String
lastname String
samaccountname String
userId String
username String

Package Details

Repository
https://github.com/pulumi/pulumi-onelogin
License
Apache-2.0
Notes

This Pulumi package is based on the onelogin Terraform Provider.