Cloud
Organizations REST API / Reference / REST API

Groups

Postman Collection
OpenAPI
POST

Search for groups within an organization

The API is available for customers using the new user management experience only. How the new user management experience works

Returns a list of groups within an organization, offering search functionality through multiple parameters for more precise results.

Request

Path parameters

orgId

string

Required

Request bodyapplication/json

groupIds

array<string>

groupNames

GroupNames

cursor

string

limit

integer

expand

array<string>

Responses

Organization found. Response contains group search results

application/json

GroupsSearchPage
POST/v1/orgs/{orgId}/groups/search
1 2 3 4 5 6 7 8 curl --request POST \ --url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/groups/search' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "limit": 20 }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 { "data": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "example", "description": "example description" } ], "links": { "next": "MDNlZWRmNzMtMWYwMi00NGM5LWI4NjgtZGQ1NTIwMjIwYjhj", "self": "MDI0MzkwOGEtMmYyOC00NzgzLWI5YTktMDUwZTExNzJjZDU4" } }
GET

Get groups in an organizationExperimental

Returns a page of groups in an organization that match the supplied parameters.

Request

Path parameters

orgId

string

Required
directoryId

string

Required

Query parameters

cursor

string

limit

integer

directoryIds

array<string>

accountIds

array<string>

groupIds

array<string>

resourceOwners

array<string>

resourceIds

array<string>

searchTerm

string

counts

object

sortBy

array<object>

Responses

Returned if the request is successful.

application/json

MultiDirectoryGroupPage
GET/v2/orgs/{orgId}/directories/{directoryId}/groups
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v2/orgs/{orgId}/directories/{directoryId}/groups' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 { "data": [ { "id": "12345678-1234-1234-1234-123456789012", "name": "jira-administrators", "description": "This group provides admin access to Jira.", "directoryId": "12345678-1234-1234-1234-123456789012", "counts": { "users": 10, "resources": 109 }, "links": { "self": "ECg53CukK1twBo0LK1u9nw" } } ], "links": { "self": "ObSbZxpM1f1fzia2_GnuJw", "prev": "LIZFEbzCT2pCCkQhPIUgIQ", "next": "kloHX1ZQVasDAkx_P48NYQ" } }
GET

Get group statsExperimental

Returns group stats for the organization.

Request

Path parameters

orgId

string

Required
directoryId

string

Required

Responses

Returned if the request is successful.

application/json

MultiDirectoryGroupStats
GET/v2/orgs/{orgId}/directories/{directoryId}/groups/stats
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v2/orgs/{orgId}/directories/{directoryId}/groups/stats' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 { "types": [ { "type": "GROUP", "count": 10 } ], "totals": { "all": 10, "synced": 4 } }
GET

Get group detailsExperimental

Returns the details of a group.

Request

Path parameters

orgId

string

Required
directoryId

string

Required
groupId

string

Required

Responses

Returned if the request is successful.

application/json

MultiDirectoryGroup
GET/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 { "id": "12345678-1234-1234-1234-123456789012", "name": "jira-administrators", "description": "This group provides admin access to Jira.", "directoryId": "12345678-1234-1234-1234-123456789012", "counts": { "users": 10, "resources": 109 }, "links": { "self": "ECg53CukK1twBo0LK1u9nw" } }
GET

Get group role assignmentsExperimental

Returns a page of role assignments for a group that match the supplied parameters.

Request

Path parameters

orgId

string

Required
directoryId

string

Required
groupId

string

Required

Query parameters

cursor

string

limit

integer

directoryIds

array<string>

resourceOwners

array<string>

resourceIds

array<string>

Responses

Returned if the request is successful.

application/json

MultiDirectoryGroupRoleAssignmentPage
GET/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/role-assignments
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v2/orgs/{orgId}/directories/{directoryId}/groups/{groupId}/role-assignments' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 { "data": [ { "resourceId": "ari:cloud:jira-core::site/1", "resourceOwner": "jira-core", "roles": [ "atlassian/user", "atlassian/admin" ] } ], "links": { "self": "ObSbZxpM1f1fzia2_GnuJw", "prev": "LIZFEbzCT2pCCkQhPIUgIQ", "next": "kloHX1ZQVasDAkx_P48NYQ" } }

Rate this page: