Viewing docs for bitbucket 2.50.0
published on Wednesday, Oct 8, 2025 by drfaust92
published on Wednesday, Oct 8, 2025 by drfaust92
Viewing docs for bitbucket 2.50.0
published on Wednesday, Oct 8, 2025 by drfaust92
published on Wednesday, Oct 8, 2025 by drfaust92
Provides a way to fetch data of the current user.
OAuth2 Scopes: account
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const example = bitbucket.getCurrentUser({});
import pulumi
import pulumi_bitbucket as bitbucket
example = bitbucket.get_current_user()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bitbucket.GetCurrentUser(ctx, &bitbucket.GetCurrentUserArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() =>
{
var example = Bitbucket.GetCurrentUser.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.BitbucketFunctions;
import com.pulumi.bitbucket.inputs.GetCurrentUserArgs;
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 example = BitbucketFunctions.getCurrentUser();
}
}
variables:
example:
fn::invoke:
function: bitbucket:getCurrentUser
arguments: {}
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(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
def get_current_user_output(id: Optional[pulumi.Input[str]] = None,
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: bitbucket:index/getCurrentUser:getCurrentUser
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Id string
- id String
- id string
- id str
- id String
getCurrentUser Result
The following output properties are available:
- Display
Name string - the display name that the user wants to use for GDPR
- Emails
List<Get
Current User Email> - The email address.
- Id string
- Username string
- The Username.
- Uuid string
- the uuid that bitbucket users to connect a user to various objects
- Display
Name string - the display name that the user wants to use for GDPR
- Emails
[]Get
Current User Email - The email address.
- Id string
- Username string
- The Username.
- Uuid string
- the uuid that bitbucket users to connect a user to various objects
- display
Name String - the display name that the user wants to use for GDPR
- emails
List<Get
Current User Email> - The email address.
- id String
- username String
- The Username.
- uuid String
- the uuid that bitbucket users to connect a user to various objects
- display
Name string - the display name that the user wants to use for GDPR
- emails
Get
Current User Email[] - The email address.
- id string
- username string
- The Username.
- uuid string
- the uuid that bitbucket users to connect a user to various objects
- display_
name str - the display name that the user wants to use for GDPR
- emails
Sequence[Get
Current User Email] - The email address.
- id str
- username str
- The Username.
- uuid str
- the uuid that bitbucket users to connect a user to various objects
- display
Name String - the display name that the user wants to use for GDPR
- emails List<Property Map>
- The email address.
- id String
- username String
- The Username.
- uuid String
- the uuid that bitbucket users to connect a user to various objects
Supporting Types
GetCurrentUserEmail
- Email string
- The email address.
- Is
Confirmed bool - Whether the email is confirmed.
- Is
Primary bool - Whether is primary email for the user.
- Email string
- The email address.
- Is
Confirmed bool - Whether the email is confirmed.
- Is
Primary bool - Whether is primary email for the user.
- email String
- The email address.
- is
Confirmed Boolean - Whether the email is confirmed.
- is
Primary Boolean - Whether is primary email for the user.
- email string
- The email address.
- is
Confirmed boolean - Whether the email is confirmed.
- is
Primary boolean - Whether is primary email for the user.
- email str
- The email address.
- is_
confirmed bool - Whether the email is confirmed.
- is_
primary bool - Whether is primary email for the user.
- email String
- The email address.
- is
Confirmed Boolean - Whether the email is confirmed.
- is
Primary Boolean - Whether is primary email for the user.
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the
bitbucketTerraform Provider.
Viewing docs for bitbucket 2.50.0
published on Wednesday, Oct 8, 2025 by drfaust92
published on Wednesday, Oct 8, 2025 by drfaust92
