Creates a group by given group parameter
Forge and OAuth2 apps cannot access this REST resource.
string
Returns full representation of a Jira group in JSON format.
1
2
3
4
5
6
7
8
curl --request POST \
--url 'http://{baseurl}/rest/api/2/group' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>"
}'1
2
3
4
5
6
7
8
9
10
11
12
{
"name": "jira-administrators",
"self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators",
"users": {
"backingListSize": 2154,
"callback": {},
"items": [],
"maxResults": 50,
"pagingCallback": {},
"size": 50
}
}Deletes a group by given group parameter
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Returned if the group was deleted.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/group?groupname={groupname}' \
--user 'email@example.com:<api_token>'Returns a paginated list of users who are members of the specified group and its subgroups
Forge and OAuth2 apps cannot access this REST resource.
string
string
string
Requiredstring
Returns a paginated list of users in the group
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/group/member?groupname={groupname}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
{
"active": true,
"avatarUrls": {},
"displayName": "Fred F. User",
"emailAddress": "fred@example.com",
"key": "fred",
"name": "Fred",
"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
"timeZone": "Australia/Sydney"
}Adds given user to a group
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Returns full representation of a Jira group in JSON format.
1
2
3
4
5
6
7
8
curl --request POST \
--url 'http://{baseurl}/rest/api/2/group/user?groupname={groupname}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "charlie"
}'1
2
3
4
5
6
7
8
9
10
11
12
{
"name": "jira-administrators",
"self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators",
"users": {
"backingListSize": 2154,
"callback": {},
"items": [],
"maxResults": 50,
"pagingCallback": {},
"size": 50
}
}Removes given user from a group
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
RequiredIf the user was removed from the group.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/group/user?groupname={groupname}&username={username}' \
--user 'email@example.com:<api_token>'Rate this page: