onelogin.getUser
Returns User resource.
Example Usage
using Pulumi;
using Onelogin = Pulumi.Onelogin;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Onelogin.GetUser.InvokeAsync(new Onelogin.GetUserArgs
{
Username = "timmy.tester",
}));
}
}
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.LookupUser(ctx, &GetUserArgs{
Username: pulumi.StringRef("timmy.tester"),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_onelogin as onelogin
example = onelogin.get_user(username="timmy.tester")
import * as pulumi from "@pulumi/pulumi";
import * as onelogin from "@pulumi/onelogin";
const example = pulumi.output(onelogin.getUser({
username: "timmy.tester",
}));
Coming soon!
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[int] = None,
user_id: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(external_id: Optional[pulumi.Input[int]] = None,
user_id: Optional[pulumi.Input[str]] = None,
username: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
> Note: This function is named LookupUser
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: onelogin:index/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- External
Id int The user's external_id
- User
Id string The user's ID.
- Username string
The user's username.
- External
Id int The user's external_id
- User
Id string The user's ID.
- Username string
The user's username.
- external
Id Integer The user's external_id
- user
Id String The user's ID.
- username String
The user's username.
- external
Id number The user's external_id
- user
Id string The user's ID.
- username string
The user's username.
- external_
id int The user's external_id
- user_
id str The user's ID.
- username str
The user's username.
- external
Id Number The user's external_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 int The user's directory_id
- Distinguished
Name string The user's distinguished name
- Email string
The user's email.
- External
Id int The user's external_id
- Firstname string
The user's first name
- Group
Id int The user's group_id
- Id string
The provider-assigned unique ID for this managed resource.
- Lastname string
The user's last name
- Manager
Ad intId The user's manager_ad_id
- Manager
User intId 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 int
The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- Status int
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 intId 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 int The user's directory_id
- Distinguished
Name string The user's distinguished name
- Email string
The user's email.
- External
Id int The user's external_id
- Firstname string
The user's first name
- Group
Id int The user's group_id
- Id string
The provider-assigned unique ID for this managed resource.
- Lastname string
The user's last name
- Manager
Ad intId The user's manager_ad_id
- Manager
User intId 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 int
The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- Status int
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 intId 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 Integer The user's directory_id
- distinguished
Name String The user's distinguished name
- email String
The user's email.
- external
Id Integer The user's external_id
- firstname String
The user's first name
- group
Id Integer The user's group_id
- id String
The provider-assigned unique ID for this managed resource.
- lastname String
The user's last name
- manager
Ad IntegerId The user's manager_ad_id
- manager
User IntegerId 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 Integer
The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- status Integer
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 IntegerId 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 provider-assigned unique ID for this managed resource.
- 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 int The user's directory_id
- distinguished_
name str The user's distinguished name
- email str
The user's email.
- external_
id int The user's external_id
- firstname str
The user's first name
- group_
id int The user's group_id
- id str
The provider-assigned unique ID for this managed resource.
- lastname str
The user's last name
- manager_
ad_ intid The user's manager_ad_id
- manager_
user_ intid 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 int
The user's state. Must be one of
0: Unapproved
1: Approved
2: Rejected
3: Unlicensed
- status int
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_ intid 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 provider-assigned unique ID for this managed resource.
- 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 pulumi/pulumi-onelogin
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
onelogin
Terraform Provider.