v1

latestOpenAPI 3.0.12026-07-13130168404.3 KB
Users

Get current user

Returns the currently logged-in user. This includes information about the user, like the display name, userKey, account ID, profile picture, and more.

Permissions required: Permission to access the Confluence site ('Can use' global permission).

get/wiki/rest/api/user/current

Query parameters

expandstring[]

A multi-value parameter indicating which properties of the user to expand.

  • operations returns the operations that the user is allowed to do.
  • personalSpace returns the user's personal space, if it exists.
  • isExternalCollaborator(@deprecated) see isGuest in response to find out whether the user is a guest.

Response

Returned if the current user is returned.

type'known' | 'unknown' | 'anonymous' | 'user' required
usernamestring nullable

This property is no longer available and will be removed from the documentation soon. Use accountId instead. See the deprecation notice for details.

userKeystring nullable

This property is no longer available and will be removed from the documentation soon. Use accountId instead. See the deprecation notice for details.

accountIdstring nullable

The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192.

accountType'atlassian' | 'app' | ''

The account type of the user, may return empty string if unavailable. App is if the user is a bot user created on behalf of an Atlassian app.

emailstring nullable

The email address of the user. Depending on the user's privacy setting, this may return an empty string.

publicNamestring

The public name or nickname of the user. Will always contain a value.

displayNamestring nullable

The displays name of the user. Depending on the user's privacy setting, this may be the same as publicName.

timeZonestring nullable

This displays user time zone. Depending on the user's privacy setting, this may return null.

externalCollaboratorboolean

This is deprecated. Use isGuest instead to find out whether the user is a guest user.

isExternalCollaboratorboolean

This is deprecated. Use isGuest instead to find out whether the user is a guest user.

isGuestboolean

Whether the user is a guest user

_linksGenericLinks