zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse
zitadel.getHumanUser
Explore with Pulumi AI
Datasource representing a human user situated under an organization, which then can be authorized through memberships or direct grants on other resources.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumi.Zitadel;
return await Deployment.RunAsync(() =>
{
var @default = Zitadel.GetHumanUser.Invoke(new()
{
OrgId = data.Zitadel_org.Default.Id,
UserId = "123456789012345678",
});
return new Dictionary<string, object?>
{
["humanUser"] = @default,
};
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := zitadel.LookupHumanUser(ctx, &zitadel.LookupHumanUserArgs{
OrgId: data.Zitadel_org.Default.Id,
UserId: "123456789012345678",
}, nil)
if err != nil {
return err
}
ctx.Export("humanUser", _default)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zitadel.ZitadelFunctions;
import com.pulumi.zitadel.inputs.GetHumanUserArgs;
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 default = ZitadelFunctions.getHumanUser(GetHumanUserArgs.builder()
.orgId(data.zitadel_org().default().id())
.userId("123456789012345678")
.build());
ctx.export("humanUser", default_);
}
}
import pulumi
import pulumi_zitadel as zitadel
default = zitadel.get_human_user(org_id=data["zitadel_org"]["default"]["id"],
user_id="123456789012345678")
pulumi.export("humanUser", default)
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumi/zitadel";
const default = zitadel.getHumanUser({
orgId: data.zitadel_org["default"].id,
userId: "123456789012345678",
});
export const humanUser = _default;
variables:
default:
fn::invoke:
Function: zitadel:getHumanUser
Arguments:
orgId: ${data.zitadel_org.default.id}
userId: '123456789012345678'
outputs:
humanUser: ${default}
Using getHumanUser
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 getHumanUser(args: GetHumanUserArgs, opts?: InvokeOptions): Promise<GetHumanUserResult>
function getHumanUserOutput(args: GetHumanUserOutputArgs, opts?: InvokeOptions): Output<GetHumanUserResult>
def get_human_user(org_id: Optional[str] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHumanUserResult
def get_human_user_output(org_id: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHumanUserResult]
func LookupHumanUser(ctx *Context, args *LookupHumanUserArgs, opts ...InvokeOption) (*LookupHumanUserResult, error)
func LookupHumanUserOutput(ctx *Context, args *LookupHumanUserOutputArgs, opts ...InvokeOption) LookupHumanUserResultOutput
> Note: This function is named LookupHumanUser
in the Go SDK.
public static class GetHumanUser
{
public static Task<GetHumanUserResult> InvokeAsync(GetHumanUserArgs args, InvokeOptions? opts = null)
public static Output<GetHumanUserResult> Invoke(GetHumanUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHumanUserResult> getHumanUser(GetHumanUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zitadel:index/getHumanUser:getHumanUser
arguments:
# arguments dictionary
The following arguments are supported:
getHumanUser Result
The following output properties are available:
- Display
Name string - Display name of the user
- Email string
- Email of the user
- First
Name string - First name of the user
- Gender string
- Gender of the user
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Email boolVerified - Is the email verified of the user, can only be true if password of the user is set
- Is
Phone boolVerified - Is the phone verified of the user
- Last
Name string - Last name of the user
- Login
Names List<string> - Loginnames
- Nick
Name string - Nick name of the user
- Org
Id string - ID of the organization
- Phone string
- Phone of the user
- Preferred
Language string - Preferred language of the user
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- User
Id string - The ID of this resource.
- User
Name string - Username
- Display
Name string - Display name of the user
- Email string
- Email of the user
- First
Name string - First name of the user
- Gender string
- Gender of the user
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Email boolVerified - Is the email verified of the user, can only be true if password of the user is set
- Is
Phone boolVerified - Is the phone verified of the user
- Last
Name string - Last name of the user
- Login
Names []string - Loginnames
- Nick
Name string - Nick name of the user
- Org
Id string - ID of the organization
- Phone string
- Phone of the user
- Preferred
Language string - Preferred language of the user
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- User
Id string - The ID of this resource.
- User
Name string - Username
- display
Name String - Display name of the user
- email String
- Email of the user
- first
Name String - First name of the user
- gender String
- Gender of the user
- id String
- The provider-assigned unique ID for this managed resource.
- is
Email BooleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone BooleanVerified - Is the phone verified of the user
- last
Name String - Last name of the user
- login
Names List<String> - Loginnames
- nick
Name String - Nick name of the user
- org
Id String - ID of the organization
- phone String
- Phone of the user
- preferred
Language String - Preferred language of the user
- preferred
Login StringName - Preferred login name
- state String
- State of the user
- user
Id String - The ID of this resource.
- user
Name String - Username
- display
Name string - Display name of the user
- email string
- Email of the user
- first
Name string - First name of the user
- gender string
- Gender of the user
- id string
- The provider-assigned unique ID for this managed resource.
- is
Email booleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone booleanVerified - Is the phone verified of the user
- last
Name string - Last name of the user
- login
Names string[] - Loginnames
- nick
Name string - Nick name of the user
- org
Id string - ID of the organization
- phone string
- Phone of the user
- preferred
Language string - Preferred language of the user
- preferred
Login stringName - Preferred login name
- state string
- State of the user
- user
Id string - The ID of this resource.
- user
Name string - Username
- display_
name str - Display name of the user
- email str
- Email of the user
- first_
name str - First name of the user
- gender str
- Gender of the user
- id str
- The provider-assigned unique ID for this managed resource.
- is_
email_ boolverified - Is the email verified of the user, can only be true if password of the user is set
- is_
phone_ boolverified - Is the phone verified of the user
- last_
name str - Last name of the user
- login_
names Sequence[str] - Loginnames
- nick_
name str - Nick name of the user
- org_
id str - ID of the organization
- phone str
- Phone of the user
- preferred_
language str - Preferred language of the user
- preferred_
login_ strname - Preferred login name
- state str
- State of the user
- user_
id str - The ID of this resource.
- user_
name str - Username
- display
Name String - Display name of the user
- email String
- Email of the user
- first
Name String - First name of the user
- gender String
- Gender of the user
- id String
- The provider-assigned unique ID for this managed resource.
- is
Email BooleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone BooleanVerified - Is the phone verified of the user
- last
Name String - Last name of the user
- login
Names List<String> - Loginnames
- nick
Name String - Nick name of the user
- org
Id String - ID of the organization
- phone String
- Phone of the user
- preferred
Language String - Preferred language of the user
- preferred
Login StringName - Preferred login name
- state String
- State of the user
- user
Id String - The ID of this resource.
- user
Name String - Username
Package Details
- Repository
- zitadel pulumiverse/pulumi-zitadel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
zitadel
Terraform Provider.