Fetches the user details.
GET /rest/api/latest/users/{slug}
The user object
Fetches repositories belonging to this user.
GET /rest/api/latest/users/{slug}/repos
Optionalparams: ReposParamsOptional filters: limit, start, name, permission
A paged response of repositories
Fetches the settings of this user.
GET /rest/api/latest/users/{slug}/settings
The user settings object
Fetches the SSH keys associated with this user.
GET /rest/api/latest/users/{slug}/ssh
Optionalparams: SshKeysParamsOptional pagination: limit, start
A paged response of SSH keys
Allows the resource to be awaited directly, resolving with the user info. Delegates to UserResource.get.
Optionalonfulfilled: ((value: BitbucketUser) => TResult1 | PromiseLike<TResult1>) | nullOptionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null
Represents a Bitbucket user resource.
Implements
PromiseLike<BitbucketUser>so it can be awaited directly to fetch user info.Example