Internal
Create a new instance of the service.
Returns a paginated list of the users specified by one or more account IDs.
Permissions required: Permission to access Jira.
The account ID of a user. To specify multiple users, pass multiple accountId
parameters. For example,
accountId=5b10a2844c20165700ede21g&accountId=5b10ac8d82e05b22cc7d4ef5
.
Optional
key?: string[]This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
Optional
maxThe maximum number of items to return per page.
Optional
startThe index of the first item to return in a page of results (page offset).
Optional
username?: string[]This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
Returned if the request is successful.
example:
{
"isLast": true,
"maxResults": 100,
"startAt": 0,
"total": 1,
"values": [
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": true,
"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",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
"timeZone": "Australia/Sydney"
}
]
}
Returns the account IDs for the users specified in the key
or username
parameters. Note that multiple key
or username
parameters can be specified.
Permissions required: Permission to access Jira.
Optional
key?: string[]Key of a user. To specify multiple users, pass multiple copies of this
parameter. For example, key=fred&key=barney
. Required if username
isn't
provided. Cannot be provided if username
is present.
Optional
maxThe maximum number of items to return per page.
Optional
startThe index of the first item to return in a page of results (page offset).
Optional
username?: string[]Username of a user. To specify multiple users, pass multiple copies of this
parameter. For example, username=fred&username=barney
. Required if key
isn't provided. Cannot be provided if key
is present.
Returned if the request is successful.
example:
[
{
"username": "mia",
"accountId": "5b10a2844c20165700ede21g"
},
{
"username": "emma",
"accountId": "5b10ac8d82e05b22cc7d4ef5"
}
]
Creates a user. This resource is retained for legacy compatibility. As soon as a more suitable alternative is available this resource will be deprecated.
If the user exists and has access to Jira, the operation returns a 201 status. If the user exists but does not have access to Jira, the operation returns a 400 status.
Permissions required: Administer Jira global permission.
Details about the user to be created.
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 a list of all users, including active users, inactive users and previously deleted users that have an Atlassian account.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
Permissions required: Browse users and groups global permission.
Optional
maxThe maximum number of items to return.
Optional
startThe index of the first item to return.
Returned if the request is successful.
example:
[
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": false,
"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",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
},
{
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
},
"displayName": "Emma Richards",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
}
]
Returns a list of all users, including active users, inactive users and previously deleted users that have an Atlassian account.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
Permissions required: Browse users and groups global permission.
Optional
maxThe maximum number of items to return.
Optional
startThe index of the first item to return.
Returned if the request is successful.
example:
[
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": false,
"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",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
},
{
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
},
"displayName": "Emma Richards",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
}
]
Returns a user.
Privacy controls are applied to the response based on the user's preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
Permissions required: Browse users and groups global permission.
Optional
accountThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required.
Optional
expand?: stringUse expand to include additional information about users in the response. This parameter accepts a comma-separated list. Expand options include:
groups
includes all groups and nested groups to which the user belongs.applicationRoles
includes details of all the applications to which the
user has access.Optional
key?: stringThis parameter is no longer available. See the deprecation notice for details.
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
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 default issue table
columns for the user. If
accountId
is not passed in the request, the calling user's details are
returned.
Permissions required:
Optional
accountThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
Optional
username?: stringThis parameter is no longer available See the deprecation notice for details.
Returned if the request is successful.
Returns a user's email address regardless of the user's profile visibility settings. For Connect apps, this API is only available to apps approved by Atlassian, according to these guidelines. For Forge apps, this API only supports access via asApp() requests.
The account ID of the user, which uniquely identifies the user across all
Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5
.
Returned if the request is successful.
example:
name@example.com
Returns a user's email address regardless of the user's profile visibility settings. For Connect apps, this API is only available to apps approved by Atlassian, according to these guidelines. For Forge apps, this API only supports access via asApp() requests.
The account IDs of the users for which emails are required. An accountId
is
an identifier that uniquely identifies the user across all Atlassian products.
For example, 5b10ac8d82e05b22cc7d4ef5
. Note, this should be treated as an
opaque identifier (that is, do not assume any structure in the value).
Returned if the request is successful.
Returns the groups to which a user belongs.
Permissions required: Browse users and groups global permission.
The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
Optional
key?: stringThis parameter is no longer available. See the deprecation notice for details.
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Returned if the request is successful.
example:
{
"groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
"name": "jira-administrators",
"self": "https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625"
}
Deletes a user. If the operation completes successfully then the user is removed from Jira's user base. This operation does not delete the user's Atlassian account.
Permissions required: Site administration (that is, membership of the site-admin group).
The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
Optional
key?: stringThis parameter is no longer available. See the deprecation notice for details.
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Resets the default issue table
columns for the user to the system
default. If accountId
is not passed, the calling user's default columns are
reset.
Permissions required:
Optional
accountThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Sets the default issue table columns for the user. If an account ID is not passed, the calling user's default columns are set. If no column details are sent, then all default columns are removed.
The parameters for this resource are expressed as HTML form data. For example, in curl:
curl -X PUT -d columns=summary -d columns=description https://your-domain.atlassian.net/rest/api/3/user/columns?accountId=5b10ac8d82e05b22cc7d4ef5'
Permissions required:
Optional
accountThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
The ID of a column to set. To set multiple columns, send multiple columns
parameters.
Returned if the request is successful.
Protected
Static
initialize
This resource represent users. Use it to:
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users