user
The bitbucket user command group inspects Bitbucket user accounts — show who you are authenticated as, look up another user’s public profile, and list the email addresses on your account.
Subcommands
Section titled “Subcommands”| Command | Description |
|---|---|
user whoami |
Show the currently authenticated user |
user view |
View a user’s public profile |
user emails |
List email addresses on the authenticated account |
user view takes an <account> argument — the account ID or UUID (including braces) of the user. All three commands accept the global --workspace and --output flags.
Examples
Section titled “Examples”Show the currently authenticated user:
bitbucket user whoamiLook up another user by account ID:
bitbucket user view 557058:1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6dLook up a user by UUID (braces included):
bitbucket user view '{1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d}'List the email addresses on your account:
bitbucket user emailsGet your account UUID for scripting:
bitbucket user whoami --output json | jq -r '.uuid'