onelogin 0.5.4 published on Wednesday, Apr 30, 2025 by onelogin
onelogin.getUser
Explore with Pulumi AI
onelogin 0.5.4 published on Wednesday, Apr 30, 2025 by onelogin
Returns User resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as onelogin from "@pulumi/onelogin";
const example = onelogin.getUser({
username: "timmy.tester",
});
import pulumi
import pulumi_onelogin as onelogin
example = onelogin.get_user(username="timmy.tester")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/onelogin/onelogin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := onelogin.GetUser(ctx, &onelogin.GetUserArgs{
Username: pulumi.StringRef("timmy.tester"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Onelogin = Pulumi.Onelogin;
return await Deployment.RunAsync(() =>
{
var example = Onelogin.GetUser.Invoke(new()
{
Username = "timmy.tester",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.onelogin.OneloginFunctions;
import com.pulumi.onelogin.inputs.GetUserArgs;
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 example = OneloginFunctions.getUser(GetUserArgs.builder()
.username("timmy.tester")
.build());
}
}
variables:
example:
fn::invoke:
function: onelogin:getUser
arguments:
username: timmy.tester
Using getUser
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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
def get_user(external_id: Optional[float] = None,
id: Optional[str] = None,
user_id: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(external_id: Optional[pulumi.Input[float]] = None,
id: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
username: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
func GetUser(ctx *Context, args *GetUserArgs, opts ...InvokeOption) (*GetUserResult, error)
func GetUserOutput(ctx *Context, args *GetUserOutputArgs, opts ...InvokeOption) GetUserResultOutput
> Note: This function is named GetUser
in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
function: onelogin:index/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- External
Id double - The user's external_id
- Id string
- The user's id
- User
Id string - The user's ID.
- Username string
- The user's username.
- External
Id float64 - The user's external_id
- Id string
- The user's id
- User
Id string - The user's ID.
- Username string
- The user's username.
- external
Id Double - The user's external_id
- id String
- The user's id
- user
Id String - The user's ID.
- username String
- The user's username.
- external
Id number - The user's external_id
- id string
- The user's id
- user
Id string - The user's ID.
- username string
- The user's username.
- external_
id float - The user's external_id
- id str
- The user's id
- user_
id str - The user's ID.
- username str
- The user's username.
- external
Id Number - The user's external_id
- id String
- The user's id
- user
Id String - The user's ID.
- username String
- The user's username.
getUser Result
The following output properties are available:
- Comment string
- A comment about the user
- Company string
- The user's company
- Custom
Attributes Dictionary<string, string> - Department string
- The user's department
- Directory
Id double - The user's directory_id
- Distinguished
Name string - The user's distinguished name
- Email string
- The user's email.
- External
Id double - The user's external_id
- Firstname string
- The user's first name
- Group
Id double - The user's group_id
- Id string
- The user's id
- Lastname string
- The user's last name
- Manager
Ad doubleId - The user's manager_ad_id
- Manager
User doubleId - The user's manager_user_id
- Member
Of string - The user's member_of
- Phone string
- The user's phone number
- Samaccountname string
- The user's samaccount name
- State double
- The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- Status double
- The user's status. Must be one of
0: Unactivated
1: Active
2: Suspended
3: Locked
4: Password expired
5: Awaiting password reset
7: Password Pending
8: Security questions required
- Title string
- The user's title
- Trusted
Idp doubleId - The user's trusted_idp_id
- Username string
- Userprincipalname string
- The user's user principal name
- User
Id string
- Comment string
- A comment about the user
- Company string
- The user's company
- Custom
Attributes map[string]string - Department string
- The user's department
- Directory
Id float64 - The user's directory_id
- Distinguished
Name string - The user's distinguished name
- Email string
- The user's email.
- External
Id float64 - The user's external_id
- Firstname string
- The user's first name
- Group
Id float64 - The user's group_id
- Id string
- The user's id
- Lastname string
- The user's last name
- Manager
Ad float64Id - The user's manager_ad_id
- Manager
User float64Id - The user's manager_user_id
- Member
Of string - The user's member_of
- Phone string
- The user's phone number
- Samaccountname string
- The user's samaccount name
- State float64
- The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- Status float64
- The user's status. Must be one of
0: Unactivated
1: Active
2: Suspended
3: Locked
4: Password expired
5: Awaiting password reset
7: Password Pending
8: Security questions required
- Title string
- The user's title
- Trusted
Idp float64Id - The user's trusted_idp_id
- Username string
- Userprincipalname string
- The user's user principal name
- User
Id string
- comment String
- A comment about the user
- company String
- The user's company
- custom
Attributes Map<String,String> - department String
- The user's department
- directory
Id Double - The user's directory_id
- distinguished
Name String - The user's distinguished name
- email String
- The user's email.
- external
Id Double - The user's external_id
- firstname String
- The user's first name
- group
Id Double - The user's group_id
- id String
- The user's id
- lastname String
- The user's last name
- manager
Ad DoubleId - The user's manager_ad_id
- manager
User DoubleId - The user's manager_user_id
- member
Of String - The user's member_of
- phone String
- The user's phone number
- samaccountname String
- The user's samaccount name
- state Double
- The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- status Double
- The user's status. Must be one of
0: Unactivated
1: Active
2: Suspended
3: Locked
4: Password expired
5: Awaiting password reset
7: Password Pending
8: Security questions required
- title String
- The user's title
- trusted
Idp DoubleId - The user's trusted_idp_id
- username String
- userprincipalname String
- The user's user principal name
- user
Id String
- comment string
- A comment about the user
- company string
- The user's company
- custom
Attributes {[key: string]: string} - department string
- The user's department
- directory
Id number - The user's directory_id
- distinguished
Name string - The user's distinguished name
- email string
- The user's email.
- external
Id number - The user's external_id
- firstname string
- The user's first name
- group
Id number - The user's group_id
- id string
- The user's id
- lastname string
- The user's last name
- manager
Ad numberId - The user's manager_ad_id
- manager
User numberId - The user's manager_user_id
- member
Of string - The user's member_of
- phone string
- The user's phone number
- samaccountname string
- The user's samaccount name
- state number
- The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- status number
- The user's status. Must be one of
0: Unactivated
1: Active
2: Suspended
3: Locked
4: Password expired
5: Awaiting password reset
7: Password Pending
8: Security questions required
- title string
- The user's title
- trusted
Idp numberId - The user's trusted_idp_id
- username string
- userprincipalname string
- The user's user principal name
- user
Id string
- comment str
- A comment about the user
- company str
- The user's company
- custom_
attributes Mapping[str, str] - department str
- The user's department
- directory_
id float - The user's directory_id
- distinguished_
name str - The user's distinguished name
- email str
- The user's email.
- external_
id float - The user's external_id
- firstname str
- The user's first name
- group_
id float - The user's group_id
- id str
- The user's id
- lastname str
- The user's last name
- manager_
ad_ floatid - The user's manager_ad_id
- manager_
user_ floatid - The user's manager_user_id
- member_
of str - The user's member_of
- phone str
- The user's phone number
- samaccountname str
- The user's samaccount name
- state float
- The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- status float
- The user's status. Must be one of
0: Unactivated
1: Active
2: Suspended
3: Locked
4: Password expired
5: Awaiting password reset
7: Password Pending
8: Security questions required
- title str
- The user's title
- trusted_
idp_ floatid - The user's trusted_idp_id
- username str
- userprincipalname str
- The user's user principal name
- user_
id str
- comment String
- A comment about the user
- company String
- The user's company
- custom
Attributes Map<String> - department String
- The user's department
- directory
Id Number - The user's directory_id
- distinguished
Name String - The user's distinguished name
- email String
- The user's email.
- external
Id Number - The user's external_id
- firstname String
- The user's first name
- group
Id Number - The user's group_id
- id String
- The user's id
- lastname String
- The user's last name
- manager
Ad NumberId - The user's manager_ad_id
- manager
User NumberId - The user's manager_user_id
- member
Of String - The user's member_of
- phone String
- The user's phone number
- samaccountname String
- The user's samaccount name
- state Number
- The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- status Number
- The user's status. Must be one of
0: Unactivated
1: Active
2: Suspended
3: Locked
4: Password expired
5: Awaiting password reset
7: Password Pending
8: Security questions required
- title String
- The user's title
- trusted
Idp NumberId - The user's trusted_idp_id
- username String
- userprincipalname String
- The user's user principal name
- user
Id String
Package Details
- Repository
- onelogin onelogin/terraform-provider-onelogin
- License
- Notes
- This Pulumi package is based on the
onelogin
Terraform Provider.
onelogin 0.5.4 published on Wednesday, Apr 30, 2025 by onelogin