Internal
Create a new instance of the service.
Adds a user to a group.
Permissions required: Site administration (that is, member of the site-admin group).
Optional
groupThe ID of the group. This parameter cannot be used with the groupName
parameter.
Optional
groupname?: stringAs a group's name can change, use of groupId
is recommended to identify a
group.
The name of the group. This parameter cannot be used with the groupId
parameter.
The user to add to the group.
Returned if the request is successful.
Returns a paginated list of groups.
Permissions required: Browse users and groups global permission.
Optional
accessThe access level of a group. Valid values: 'site-admin', 'admin', 'user'.
Optional
applicationThe application key of the product user groups to search for. Valid values: 'jira-servicedesk', 'jira-software', 'jira-product-discovery', 'jira-core'.
Optional
groupThe ID of a group. To specify multiple IDs, pass multiple groupId
parameters.
For example,
groupId=5b10a2844c20165700ede21g&groupId=5b10ac8d82e05b22cc7d4ef5
.
Optional
groupThe name of a group. To specify multiple names, pass multiple groupName
parameters. For example,
groupName=administrators&groupName=jira-software-users
.
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).
Returned if the request is successful.
example:
{
"isLast": true,
"maxResults": 10,
"startAt": 0,
"total": 2,
"values": [
{
"groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
"name": "jdog-developers"
},
{
"groupId": "6e87dc72-4f1f-421f-9382-2fee8b652487",
"name": "juvenal-bot"
}
]
}
Creates a group.
Permissions required: Site administration (that is, member of the site-admin group).
The name of the group.
Returned if the request is successful.
example:
{
"expand": "users",
"groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
"name": "power-users",
"self": "https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625",
"users": {
"end-index": 0,
"items": [
{
"accountId": "5b10a2844c20165700ede21g",
"active": false,
"displayName": "Mia Krystof",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
}
],
"max-results": 50,
"size": 1,
"start-index": 0
}
}
Returns a list of groups whose names contain a query string. A list of group names can be provided to exclude groups from the results.
The primary use case for this resource is to populate a group picker
suggestions list. To this end, the returned object includes the html
field
where the matched query term is highlighted in the group name with the HTML
strong tag. Also, the groups list is wrapped in a response object that contains
a header for use in the picker, specifically Showing X of Y matching groups.
The list returns with the groups sorted. If no groups match the list criteria, an empty list is returned.
This operation can be accessed anonymously.
Permissions required: Browse projects project permission. Anonymous calls and calls by users without the required permission return an empty list.
Browse users and groups global permission. Without this permission, calls where query is not an exact match to an existing group will return an empty list.
Optional
accountThis parameter is deprecated, setting it does not affect the results. To find groups containing a particular user, use Get user groups.
Optional
caseWhether the search for groups should be case insensitive.
Optional
exclude?: string[]As a group's name can change, use of excludeGroupIds
is recommended to
identify a group.
A group to exclude from the result. To exclude multiple groups, provide an
ampersand-separated list. For example, exclude=group1&exclude=group2
. This
parameter cannot be used with the excludeGroupIds
parameter.
Optional
excludeA group ID to exclude from the result. To exclude multiple groups, provide an
ampersand-separated list. For example,
excludeId=group1-id&excludeId=group2-id
. This parameter cannot be used with
the excludeGroups
parameter.
Optional
maxThe maximum number of groups to return. The maximum number of groups that can
be returned is limited by the system property jira.ajax.autocomplete.limit
.
Optional
query?: stringThe string to find in group names.
Optional
userThis parameter is no longer available. See the deprecation notice for details.
Returned if the request is successful.
example:
{
"groups": [
{
"groupId": "276f955c-63d7-42c8-9520-92d01dca0625",
"html": "<b>j</b>dog-developers",
"name": "jdog-developers"
},
{
"groupId": "6e87dc72-4f1f-421f-9382-2fee8b652487",
"html": "<b>j</b>uvenal-bot",
"name": "juvenal-bot"
}
],
"header": "Showing 20 of 25 matching groups",
"total": 25
}
This operation is deprecated, use
group/member
.
Returns all users in a group.
Permissions required: either of:
Optional
expand?: stringList of fields to expand.
Optional
groupThe ID of the group. This parameter cannot be used with the groupName
parameter.
Optional
groupname?: stringAs a group's name can change, use of groupId
is recommended to identify a
group.
The name of the group. This parameter cannot be used with the groupId
parameter.
Returned if the request is successful.
Returns a paginated list of all users in a group.
Note that users are ordered by username, however the username is not returned in the results due to privacy reasons.
Permissions required: either of:
Optional
groupThe ID of the group. This parameter cannot be used with the groupName
parameter.
Optional
groupname?: stringAs a group's name can change, use of groupId
is recommended to identify a
group.
The name of the group. This parameter cannot be used with the groupId
parameter.
Optional
includeInclude inactive users.
Optional
maxThe maximum number of items to return per page (number should be between 1 and 50).
Optional
startThe index of the first item to return in a page of results (page offset).
Returned if the request is successful.
example:
{
"isLast": false,
"maxResults": 2,
"nextPage": "https://your-domain.atlassian.net/rest/api/3/group/member?groupId=276f955c-63d7-42c8-9520-92d01dca0625&includeInactiveUsers=false&startAt=4&maxResults=2",
"self": "https://your-domain.atlassian.net/rest/api/3/group/member?groupId=276f955c-63d7-42c8-9520-92d01dca0625&includeInactiveUsers=false&startAt=2&maxResults=2",
"startAt": 3,
"total": 5,
"values": [
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": true,
"avatarUrls": {},
"displayName": "Mia",
"emailAddress": "mia@example.com",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
"timeZone": "Australia/Sydney"
},
{
"accountId": "5b10a0effa615349cb016cd8",
"accountType": "atlassian",
"active": false,
"avatarUrls": {},
"displayName": "Will",
"emailAddress": "will@example.com",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a0effa615349cb016cd8",
"timeZone": "Australia/Sydney"
}
]
}
Deletes a group.
Permissions required: Site administration (that is, member of the site-admin strategic group).
Optional
groupThe ID of the group. This parameter cannot be used with the groupname
parameter.
Optional
groupname?: stringOptional
swapAs a group's name can change, use of swapGroupId
is recommended to identify a
group.
The group to transfer restrictions to. Only comments and worklogs are
transferred. If restrictions are not transferred, comments and worklogs are
inaccessible after the deletion. This parameter cannot be used with the
swapGroupId
parameter.
Optional
swapThe ID of the group to transfer restrictions to. Only comments and worklogs are
transferred. If restrictions are not transferred, comments and worklogs are
inaccessible after the deletion. This parameter cannot be used with the
swapGroup
parameter.
Removes a user from a group.
Permissions required: Site administration (that is, member of the site-admin group).
The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
Optional
groupThe ID of the group. This parameter cannot be used with the groupName
parameter.
Optional
groupname?: stringAs a group's name can change, use of groupId
is recommended to identify a
group.
The name of the group. This parameter cannot be used with the groupId
parameter.
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Protected
Static
initialize
This resource represents groups of users. Use it to get, create, find, and delete groups as well as add and remove users from groups. ([WARNING] The standard Atlassian group names are default names only and can be edited or deleted. For example, an admin or Atlassian support could delete the default group jira-software-users or rename it to jsw-users at any point. See https://support.atlassian.com/user-management/docs/create-and-update-groups/ for details.)
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups