/user endpoints to gets information related to the currently authenticated Bitbucket Cloud user. It is useful for OAuth or other in situations where the username is unknown. This endpoint returns information about an individual or team account. Individual and team accounts both have the same set of
||The name associated with the account.|
||The first name associated with account.|
||The last name associated with the account. For a team account, this value is always empty.|
||An avatar associated with the account.|
||The account resource identifier.|
Both team and user accounts can have 0 or more repositories. For information on the contents of the repository resource, see the repositories Endpoint - 1.0.
GET a user profile
Gets the basic information associated with an account and a list of all of the repositories owned by the user.
Update a user
Updates the basic information associated with an account. It operates on the currently authenticated user. Specify one or more fields with the exception of the
username field. This call ignores changes to the
username field. Omitted fields retain their existing values. The call returns the
PUT --data "field=value&field=value&..."
The response structure is the same for both individual and team accounts.
GET a list of user privileges
Gets the account-level privileges for an individual or team account. Use this call to locate the accounts that the currently authenticated
accountname has access to. An account can have
collaborator (member) privileges. The
accountname always has admin privileges on itself.
GET a list of repositories an account follows
Gets the details of the repositories that the individual or team account follows. This call returns the full data about the repositories including if the repository is a fork of another repository. An account always "follows" its own repositories.
GET a list of repositories visible to an account
Gets the details of the repositories that the user owns or has at least read access to. Use this if you're looking for a full list of all of the repositories associated with a user.
In the example below,
auser-justdirectteam is a fork of the team's repository.
GET a list of repositories the account is following
Gets a list of the repositories the account follows. This is the same list that appears on the Following tab on your account dashboard.
GET the list of repositories on the dashboard
Gets the repositories list from the account's dashboard.
Was this helpful?
Thanks for your feedback!