Viewing docs for Formal v1.2.2
published on Wednesday, Jul 15, 2026 by Formal
published on Wednesday, Jul 15, 2026 by Formal
Viewing docs for Formal v1.2.2
published on Wednesday, Jul 15, 2026 by Formal
published on Wednesday, Jul 15, 2026 by Formal
Data source for looking up a User by ID or by identity. Use either id or dbUsername, but not both. A human user’s identity is idp:formal:human:<email>, so this can resolve an email to a user ID, for example to add a user to a Group with formalGroupLinkUser.
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(db_username: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(db_username: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[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)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
function: formal:index/getUser:getUser
arguments:
# arguments dictionarydata "formal_get_user" "name" {
# arguments
}The following arguments are supported:
- Db
Username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - Id string
- The ID of the User to look up.
- Db
Username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - Id string
- The ID of the User to look up.
- db_
username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id string
- The ID of the User to look up.
- db
Username String - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id String
- The ID of the User to look up.
- db
Username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id string
- The ID of the User to look up.
- db_
username str - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id str
- The ID of the User to look up.
- db
Username String - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id String
- The ID of the User to look up.
getUser Result
The following output properties are available:
- Email string
- The email of this User. Only set for human users.
- First
Name string - The first name of this User. Only set for human users.
- Full
Name string - The full name of this User.
- Group
Ids List<string> - The IDs of the Groups this User belongs to.
- Last
Name string - The last name of this User. Only set for human users.
- Termination
Protection bool - If set to true, this User cannot be deleted.
- Type string
- The type of this User, either
humanormachine. - Db
Username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - Id string
- The ID of the User to look up.
- Email string
- The email of this User. Only set for human users.
- First
Name string - The first name of this User. Only set for human users.
- Full
Name string - The full name of this User.
- Group
Ids []string - The IDs of the Groups this User belongs to.
- Last
Name string - The last name of this User. Only set for human users.
- Termination
Protection bool - If set to true, this User cannot be deleted.
- Type string
- The type of this User, either
humanormachine. - Db
Username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - Id string
- The ID of the User to look up.
- email string
- The email of this User. Only set for human users.
- first_
name string - The first name of this User. Only set for human users.
- full_
name string - The full name of this User.
- group_
ids list(string) - The IDs of the Groups this User belongs to.
- last_
name string - The last name of this User. Only set for human users.
- termination_
protection bool - If set to true, this User cannot be deleted.
- type string
- The type of this User, either
humanormachine. - db_
username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id string
- The ID of the User to look up.
- email String
- The email of this User. Only set for human users.
- first
Name String - The first name of this User. Only set for human users.
- full
Name String - The full name of this User.
- group
Ids List<String> - The IDs of the Groups this User belongs to.
- last
Name String - The last name of this User. Only set for human users.
- termination
Protection Boolean - If set to true, this User cannot be deleted.
- type String
- The type of this User, either
humanormachine. - db
Username String - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id String
- The ID of the User to look up.
- email string
- The email of this User. Only set for human users.
- first
Name string - The first name of this User. Only set for human users.
- full
Name string - The full name of this User.
- group
Ids string[] - The IDs of the Groups this User belongs to.
- last
Name string - The last name of this User. Only set for human users.
- termination
Protection boolean - If set to true, this User cannot be deleted.
- type string
- The type of this User, either
humanormachine. - db
Username string - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id string
- The ID of the User to look up.
- email str
- The email of this User. Only set for human users.
- first_
name str - The first name of this User. Only set for human users.
- full_
name str - The full name of this User.
- group_
ids Sequence[str] - The IDs of the Groups this User belongs to.
- last_
name str - The last name of this User. Only set for human users.
- termination_
protection bool - If set to true, this User cannot be deleted.
- type str
- The type of this User, either
humanormachine. - db_
username str - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id str
- The ID of the User to look up.
- email String
- The email of this User. Only set for human users.
- first
Name String - The first name of this User. Only set for human users.
- full
Name String - The full name of this User.
- group
Ids List<String> - The IDs of the Groups this User belongs to.
- last
Name String - The last name of this User. Only set for human users.
- termination
Protection Boolean - If set to true, this User cannot be deleted.
- type String
- The type of this User, either
humanormachine. - db
Username String - The identity of the User to look up, for example
idp:formal:human:jane@example.com. - id String
- The ID of the User to look up.
Package Details
- Repository
- formal formalco/pulumi-formal
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
formalTerraform Provider.
Viewing docs for Formal v1.2.2
published on Wednesday, Jul 15, 2026 by Formal
published on Wednesday, Jul 15, 2026 by Formal