Skip to content

group

add-user-to

Add user to group

Adds a user to a group.

Permissions required: Site administration (that is, member of the site-admin group).

POST /rest/api/3/group/user

FlagTypeRequiredDescription
--bodystringNorequest body (JSON string, @file, or - for stdin)
--groupIdstringNoThe ID of the group. This parameter cannot be used with the groupName parameter.
--groupnamestringNoAs 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.

Example:

bash
jr group add-user-to

bulk-get

Bulk get groups

Returns a paginated list of groups.

Permissions required: Browse users and groups global permission.

GET /rest/api/3/group/bulk

FlagTypeRequiredDescription
--accessTypestringNoThe access level of a group. Valid values: 'site-admin', 'admin', 'user'.
--applicationKeystringNoThe application key of the product user groups to search for. Valid values: 'jira-servicedesk', 'jira-software', 'jira-product-discovery', 'jira-core'.
--groupIdstringNoThe ID of a group. To specify multiple IDs, pass multiple groupId parameters. For example, groupId=5b10a2844c20165700ede21g&groupId=5b10ac8d82e05b22cc7d4ef5.
--groupNamestringNoThe name of a group. To specify multiple names, pass multiple groupName parameters. For example, groupName=administrators&groupName=jira-software-users.
--maxResultsstringNoThe maximum number of items to return per page.
--startAtstringNoThe index of the first item to return in a page of results (page offset).

Example:

bash
jr group bulk-get

create

Create group

Creates a group.

Permissions required: Site administration (that is, member of the site-admin group).

POST /rest/api/3/group

FlagTypeRequiredDescription
--bodystringNorequest body (JSON string, @file, or - for stdin)

Example:

bash
jr group create

get

Get group

This operation is deprecated, use group/member.

Returns all users in a group.

Permissions required: either of:

GET /rest/api/3/group

FlagTypeRequiredDescription
--expandstringNoList of fields to expand.
--groupIdstringNoThe ID of the group. This parameter cannot be used with the groupName parameter.
--groupnamestringNoAs 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.

Example:

bash
jr group get

get-users-from

Get users from group

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:

GET /rest/api/3/group/member

FlagTypeRequiredDescription
--groupIdstringNoThe ID of the group. This parameter cannot be used with the groupName parameter.
--groupnamestringNoAs 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.
--includeInactiveUsersstringNoInclude inactive users.
--maxResultsstringNoThe maximum number of items to return per page (number should be between 1 and 50).
--startAtstringNoThe index of the first item to return in a page of results (page offset).

Example:

bash
jr group get-users-from

remove

Remove group

Deletes a group.

Permissions required: Site administration (that is, member of the site-admin strategic group).

DELETE /rest/api/3/group

FlagTypeRequiredDescription
--groupIdstringNoThe ID of the group. This parameter cannot be used with the groupname parameter.
--groupnamestringNo
--swapGroupstringNoAs 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.
--swapGroupIdstringNoThe 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.

Example:

bash
jr group remove

remove-user-from

Remove user from group

Removes a user from a group.

Permissions required: Site administration (that is, member of the site-admin group).

DELETE /rest/api/3/group/user

FlagTypeRequiredDescription
--accountIdstringNoThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
--groupIdstringNoThe ID of the group. This parameter cannot be used with the groupName parameter.
--groupnamestringNoAs 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.
--usernamestringNoThis parameter is no longer available. See the deprecation notice for details.

Example:

bash
jr group remove-user-from