> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Organization Groups

Retrieve a list of groups in a specific organization.

<Note>
  External Documentation

  To learn more, visit the [Atlassian Organizations documentation](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-groups/#api-v2-orgs-orgid-directories-directoryid-groups-get).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                         |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Account IDs      | Select the user account IDs to filter the results by. Maximum of `10` account IDs can be provided.                                                                                                                  |
  | Cursor           | A token used to specify a results page. This value can be obtained from the `links.next` property from a previous response.                                                                                         |
  | Directory ID     | The unique ID of the organization to list groups for. Can be obtained by using the `List Organizations` action.<br /><br />**Note:** Use the `-` character to retrieve all directories.                             |
  | Directory IDs    | Select the directory IDs to filter by. Maximum of `10` directory IDs can be provided.<br /><br />**Note:** The requestor must have administrative permissions for all resources linked to these directories.        |
  | Group IDs        | Select the group IDs to filter results by. Maximum of `10` group IDs can be provided.                                                                                                                               |
  | Limit            | The maximum number of results to return per page. Maximum value is `100`.                                                                                                                                           |
  | Organization ID  | The unique ID of your organization.<br /><br />Can be obtained by using the `List Organizations` action.                                                                                                            |
  | Resource IDs     | A comma-separated list of resource IDs in Atlassian Resource Identifier (ARI) format to filter results by. Maximum of `20` resource IDs can be provided.<br /><br />**For Example:** `ari:cloud:jira-core::site/1`. |
  | Resource Owners  | A comma-separated list of resource owners to filter results by. Maximum of `10` resource owners can be provided.                                                                                                    |
  | Return All Pages | Automatically fetch all resources, page by page.                                                                                                                                                                    |
  | Role IDs         | The role IDs to filter results by.                                                                                                                                                                                  |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Include Resources Count | Select to include the number of resources associated with each group.                                                                                                                                                                                                                                                                                        |
  | Include Users Count     | Select to include the number of users associated with each group.                                                                                                                                                                                                                                                                                            |
  | Search Term             | Filter results by the value of the `name` property.                                                                                                                                                                                                                                                                                                          |
  | Sort By                 | The field and direction to sort the results by. Currently, only sorting by `name` is supported.<br /><br />Available directions: `asc`, `desc`<br /><br />**Note:** If not provided, `asc` will be used.<br />        <br />**For Example:**<br /><pre><code>\[<br />  \{<br />    "field": "name",<br />    "direction": "asc"<br />  }<br />]</code></pre> |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"id": "12345678-1234-1234-1234-123456789012",
			"name": "jira-administrators",
			"description": "This group provides admin access to Jira.",
			"directoryId": "12345678-1234-1234-1234-123456789012",
			"managementAccess": {
				"deletable": true,
				"modifiable": true,
				"readable": true
			},
			"externalSynced": true,
			"managedBy": "external",
			"counts": {
				"users": 10,
				"resources": 109
			},
			"links": {
				"self": "ECg53CukK1twBo0LK1u9nw"
			}
		}
	],
	"links": {
		"self": "ObSbZxpM1f1fzia2_GnuJw",
		"prev": "LIZFEbzCT2pCCkQhPIUgIQ",
		"next": "kloHX1ZQVasDAkx_P48NYQ"
	}
}
```

## Workflow Library Example

[List Organization Groups with Atlassian Organizations and Send Results Via Email](https://library.blinkops.com/workflows/list-organization-groups-with-atlassian-organizations-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-organization-groups-with-atlassian-organizations-and-send-results-via-email/canvas" />
</div>
