Auth0 v3.8.3 published on Wednesday, Nov 6, 2024 by Pulumi
auth0.getUser
Explore with Pulumi AI
Data source to retrieve a specific Auth0 user by user_id
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
// An Auth0 User loaded using its ID.
const myUser = auth0.getUser({
userId: "auth0|34fdr23fdsfdfsf",
});
import pulumi
import pulumi_auth0 as auth0
# An Auth0 User loaded using its ID.
my_user = auth0.get_user(user_id="auth0|34fdr23fdsfdfsf")
package main
import (
"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// An Auth0 User loaded using its ID.
_, err := auth0.LookupUser(ctx, &auth0.LookupUserArgs{
UserId: "auth0|34fdr23fdsfdfsf",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;
return await Deployment.RunAsync(() =>
{
// An Auth0 User loaded using its ID.
var myUser = Auth0.GetUser.Invoke(new()
{
UserId = "auth0|34fdr23fdsfdfsf",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.Auth0Functions;
import com.pulumi.auth0.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) {
// An Auth0 User loaded using its ID.
final var myUser = Auth0Functions.getUser(GetUserArgs.builder()
.userId("auth0|34fdr23fdsfdfsf")
.build());
}
}
variables:
# An Auth0 User loaded using its ID.
myUser:
fn::invoke:
Function: auth0:getUser
Arguments:
userId: auth0|34fdr23fdsfdfsf
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(user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(user_id: 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: auth0:index/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- User
Id string - ID of the user.
- User
Id string - ID of the user.
- user
Id String - ID of the user.
- user
Id string - ID of the user.
- user_
id str - ID of the user.
- user
Id String - ID of the user.
getUser Result
The following output properties are available:
- App
Metadata string - Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.
- Blocked bool
- Indicates whether the user is blocked or not.
- Connection
Name string - Name of the connection from which the user information was sourced.
- Email string
- Email address of the user.
- Email
Verified bool - Indicates whether the email address has been verified.
- Family
Name string - Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Given
Name string - Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Nickname string
- Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Password string
- Initial password for this user. Required for non-passwordless connections (SMS and email).
- Permissions
List<Get
User Permission> - List of API permissions granted to the user.
- Phone
Number string - Phone number for the user; follows the E.164 recommendation. Used for SMS connections.
- Phone
Verified bool - Indicates whether the phone number has been verified.
- Picture string
- Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Roles List<string>
- Set of IDs of roles assigned to the user.
- User
Id string - ID of the user.
- User
Metadata string - Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.
- Username string
- Username of the user. Only valid if the connection requires a username.
- Verify
Email bool - Indicates whether the user will receive a verification email after creation. Overrides behavior of
email_verified
parameter.
- App
Metadata string - Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.
- Blocked bool
- Indicates whether the user is blocked or not.
- Connection
Name string - Name of the connection from which the user information was sourced.
- Email string
- Email address of the user.
- Email
Verified bool - Indicates whether the email address has been verified.
- Family
Name string - Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Given
Name string - Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Nickname string
- Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Password string
- Initial password for this user. Required for non-passwordless connections (SMS and email).
- Permissions
[]Get
User Permission Type - List of API permissions granted to the user.
- Phone
Number string - Phone number for the user; follows the E.164 recommendation. Used for SMS connections.
- Phone
Verified bool - Indicates whether the phone number has been verified.
- Picture string
- Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- Roles []string
- Set of IDs of roles assigned to the user.
- User
Id string - ID of the user.
- User
Metadata string - Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.
- Username string
- Username of the user. Only valid if the connection requires a username.
- Verify
Email bool - Indicates whether the user will receive a verification email after creation. Overrides behavior of
email_verified
parameter.
- app
Metadata String - Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.
- blocked Boolean
- Indicates whether the user is blocked or not.
- connection
Name String - Name of the connection from which the user information was sourced.
- email String
- Email address of the user.
- email
Verified Boolean - Indicates whether the email address has been verified.
- family
Name String - Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- given
Name String - Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- nickname String
- Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- password String
- Initial password for this user. Required for non-passwordless connections (SMS and email).
- permissions
List<Get
User Permission> - List of API permissions granted to the user.
- phone
Number String - Phone number for the user; follows the E.164 recommendation. Used for SMS connections.
- phone
Verified Boolean - Indicates whether the phone number has been verified.
- picture String
- Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- roles List<String>
- Set of IDs of roles assigned to the user.
- user
Id String - ID of the user.
- user
Metadata String - Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.
- username String
- Username of the user. Only valid if the connection requires a username.
- verify
Email Boolean - Indicates whether the user will receive a verification email after creation. Overrides behavior of
email_verified
parameter.
- app
Metadata string - Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.
- blocked boolean
- Indicates whether the user is blocked or not.
- connection
Name string - Name of the connection from which the user information was sourced.
- email string
- Email address of the user.
- email
Verified boolean - Indicates whether the email address has been verified.
- family
Name string - Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- given
Name string - Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- nickname string
- Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- password string
- Initial password for this user. Required for non-passwordless connections (SMS and email).
- permissions
Get
User Permission[] - List of API permissions granted to the user.
- phone
Number string - Phone number for the user; follows the E.164 recommendation. Used for SMS connections.
- phone
Verified boolean - Indicates whether the phone number has been verified.
- picture string
- Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- roles string[]
- Set of IDs of roles assigned to the user.
- user
Id string - ID of the user.
- user
Metadata string - Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.
- username string
- Username of the user. Only valid if the connection requires a username.
- verify
Email boolean - Indicates whether the user will receive a verification email after creation. Overrides behavior of
email_verified
parameter.
- app_
metadata str - Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.
- blocked bool
- Indicates whether the user is blocked or not.
- connection_
name str - Name of the connection from which the user information was sourced.
- email str
- Email address of the user.
- email_
verified bool - Indicates whether the email address has been verified.
- family_
name str - Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- given_
name str - Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- nickname str
- Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- password str
- Initial password for this user. Required for non-passwordless connections (SMS and email).
- permissions
Sequence[Get
User Permission] - List of API permissions granted to the user.
- phone_
number str - Phone number for the user; follows the E.164 recommendation. Used for SMS connections.
- phone_
verified bool - Indicates whether the phone number has been verified.
- picture str
- Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- roles Sequence[str]
- Set of IDs of roles assigned to the user.
- user_
id str - ID of the user.
- user_
metadata str - Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.
- username str
- Username of the user. Only valid if the connection requires a username.
- verify_
email bool - Indicates whether the user will receive a verification email after creation. Overrides behavior of
email_verified
parameter.
- app
Metadata String - Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.
- blocked Boolean
- Indicates whether the user is blocked or not.
- connection
Name String - Name of the connection from which the user information was sourced.
- email String
- Email address of the user.
- email
Verified Boolean - Indicates whether the email address has been verified.
- family
Name String - Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- given
Name String - Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- nickname String
- Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- password String
- Initial password for this user. Required for non-passwordless connections (SMS and email).
- permissions List<Property Map>
- List of API permissions granted to the user.
- phone
Number String - Phone number for the user; follows the E.164 recommendation. Used for SMS connections.
- phone
Verified Boolean - Indicates whether the phone number has been verified.
- picture String
- Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: Configure Identity Provider Connection for User Profile Updates.
- roles List<String>
- Set of IDs of roles assigned to the user.
- user
Id String - ID of the user.
- user
Metadata String - Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.
- username String
- Username of the user. Only valid if the connection requires a username.
- verify
Email Boolean - Indicates whether the user will receive a verification email after creation. Overrides behavior of
email_verified
parameter.
Supporting Types
GetUserPermission
- Description string
- Description of the permission.
- Name string
- Name of the permission.
- Resource
Server stringIdentifier - Resource server identifier associated with the permission.
- Resource
Server stringName - Name of resource server that the permission is associated with.
- Description string
- Description of the permission.
- Name string
- Name of the permission.
- Resource
Server stringIdentifier - Resource server identifier associated with the permission.
- Resource
Server stringName - Name of resource server that the permission is associated with.
- description String
- Description of the permission.
- name String
- Name of the permission.
- resource
Server StringIdentifier - Resource server identifier associated with the permission.
- resource
Server StringName - Name of resource server that the permission is associated with.
- description string
- Description of the permission.
- name string
- Name of the permission.
- resource
Server stringIdentifier - Resource server identifier associated with the permission.
- resource
Server stringName - Name of resource server that the permission is associated with.
- description str
- Description of the permission.
- name str
- Name of the permission.
- resource_
server_ stridentifier - Resource server identifier associated with the permission.
- resource_
server_ strname - Name of resource server that the permission is associated with.
- description String
- Description of the permission.
- name String
- Name of the permission.
- resource
Server StringIdentifier - Resource server identifier associated with the permission.
- resource
Server StringName - Name of resource server that the permission is associated with.
Package Details
- Repository
- Auth0 pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
auth0
Terraform Provider.