This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
Returns the Pulumi Cloud user that the provider’s access token belongs to. Useful for seeding a newly-created Team with the creator as a member, since Pulumi Cloud auto-adds the creator. Omitting this user from the team will result in a refresh drift.
Using getCurrentUser
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 getCurrentUser(args: GetCurrentUserArgs, opts?: InvokeOptions): Promise<GetCurrentUserResult>
function getCurrentUserOutput(args: GetCurrentUserOutputArgs, opts?: InvokeOptions): Output<GetCurrentUserResult>def get_current_user(opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
def get_current_user_output(opts: Optional[InvokeOptions] = None) -> Output[GetCurrentUserResult]func GetCurrentUser(ctx *Context, args *GetCurrentUserArgs, opts ...InvokeOption) (*GetCurrentUserResult, error)
func GetCurrentUserOutput(ctx *Context, args *GetCurrentUserOutputArgs, opts ...InvokeOption) GetCurrentUserResultOutput> Note: This function is named GetCurrentUser in the Go SDK.
public static class GetCurrentUser
{
public static Task<GetCurrentUserResult> InvokeAsync(GetCurrentUserArgs args, InvokeOptions? opts = null)
public static Output<GetCurrentUserResult> Invoke(GetCurrentUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
public static Output<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
fn::invoke:
function: pulumiservice:getCurrentUser
arguments:
# arguments dictionaryThe following arguments are supported:
getCurrentUser Result
The following output properties are available:
- avatar_
url str - URL of the user's avatar image.
- email str
- The user's email address.
- name str
- The user's display name.
- username str
- The user's Pulumi Cloud username.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
