Internal
Create a new instance of the service.
Deprecated, use Update a user profile from the user management REST API instead.
Deletes the locale of the user, which restores the default setting.
Permissions required: Permission to access Jira.
Returned if the request is successful.
Returns details for the current user.
Permissions required: Permission to access Jira.
Optional
expand?: stringUse expand to include additional information about user in the response. This parameter accepts a comma-separated list. Expand options include:
groups
Returns all groups, including nested groups, the user belongs to.applicationRoles
Returns the application roles the user is assigned to.Returned if the request is successful.
example:
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": true,
"applicationRoles": {
"items": [],
"size": 1
},
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
},
"displayName": "Mia Krystof",
"emailAddress": "mia@example.com",
"groups": {
"items": [],
"size": 3
},
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
"timeZone": "Australia/Sydney"
}
Returns the locale for the user.
If the user has no language preference set (which is the default setting) or this resource is accessed anonymous, the browser locale detected by Jira is returned. Jira detects the browser locale using the Accept-Language header in the request. However, if this doesn't match a locale available Jira, the site default locale is returned.
This operation can be accessed anonymously.
Permissions required: None.
Returned if the request is successful.
example:
{
"locale": "en_US"
}
Returns the value of a preference of the current user.
Note that these keys are deprecated:
These system preferences keys will be deprecated by 15/07/2024. You can still retrieve these keys, but it will not have any impact on Notification behaviour.
Use Update a user profile from the user management REST API to manage timezone and locale instead.
Permissions required: Permission to access Jira.
The key of the preference.
Returned if the request is successful.
Deletes a preference of the user, which restores the default value of system defined settings.
Note that these keys are deprecated:
Use Update a user profile from the user management REST API to manage timezone and locale instead.
Permissions required: Permission to access Jira.
The key of the preference.
Deprecated, use Update a user profile from the user management REST API instead.
Sets the locale of the user. The locale must be one supported by the instance of Jira.
Permissions required: Permission to access Jira.
Returned if the request is successful.
Creates a preference for the user or updates a preference's value by sending a
plain text string. For example, false
. An arbitrary preference can be created
with the value containing up to 255 characters. In addition, the following keys
define system preferences that can be set or created:
html
.true
.false
.Note that these keys are deprecated:
These system preferences keys will be deprecated by 15/07/2024. You can still use these keys to create arbitrary preferences, but it will not have any impact on Notification behaviour.
Use Update a user profile from the user management REST API to manage timezone and locale instead.
Permissions required: Permission to access Jira.
Returned if the request is successful.
Protected
Static
initialize
This resource represents information about the current user, such as basic details, group membership, application roles, preferences, and locale. Use it to get, create, update, and delete (restore default) values of the user's preferences and locale.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself