> ## 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 Users

Retrieve a list of users 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-users/#api-v2-orgs-orgid-directories-directoryid-users-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 associated with a directory.<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`. |
  | 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
  | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Account Status    | The lifecycle status of the Atlassian account to filter by.<br /><br />\* `Active` - the account is active and can be used.<br />\* `Inactive` - the account is inactive and doesn't have access to any resources.<br />\* `Closed` - the account is closed and can't be used.                                                                                                                                                                                                                                                                                                                     |
  | Claim Status      | The user claim status to filter by. If empty, returns all users regardless of claim status.<br /><br />\* `managed` returns users claimed by the organization.<br />\* `unmanaged` returns users not yet claimed. <br /><br />For more information about `managed accounts`, refer to the [Organizations API documentation](https://support.atlassian.com/user-management/docs/what-are-managed-accounts/)                                                                                                                                                                                         |
  | Email Domains     | A comma-separated list of email domains to filter by. Maximum of `10` email domains can be provided.<br /><br />**Note:** Only include the domain, for example: `example.com`.                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | MFA Enabled       | Select to filter users by whether they have multi-factor authentication enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | Membership Status | The membership status of the user account in the organization to filter by.<br /><br />\* `Active` - the account has an active membership for one or more directories.<br />\* `Suspended` - the account is suspended in ALL directories.<br />\* `No Membership` - the account is in NONE of the organization's directories.                                                                                                                                                                                                                                                                      |
  | Search Term       | A search term to filter users by their `nickname` or `email`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Sort By           | The field and direction to sort the results by. Currently, only sorting by `nick_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": "nick\_name",<br />    "direction": "asc"<br />  }<br />]</code></pre>                                                                                                                                                                                                                                    |
  | User Status       | The user status to filter by. Each status maps to a specific `accountStatus` + `membershipStatus` combination.<br /><br />\* `Active` - `accountStatus: active` + `membershipStatus: active`<br />\* `Suspended` - `accountStatus: active` + `membershipStatus: suspended`<br />\* `Not Invited` - `accountStatus: active` + `membershipStatus: no_membership`<br />\* `Deactivated` - `accountStatus: inactive`<br />\* `For Deletion` - managed account scheduled for deletion<br /><br />**Note:** Do not combine `status` with conflicting `Account Status` or `Membership Status` Parameters. |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"accountId": "12345678-1234-1234-1234-123456789012",
			"accountType": "atlassian",
			"status": "active",
			"accountStatus": "active",
			"membershipStatus": "active",
			"addedToOrg": "2024-01-01T00:00:00.000Z",
			"name": "John Doe",
			"nickname": "Jonny",
			"email": "email@example.com",
			"emailVerified": true,
			"claimStatus": "unmanaged",
			"platformRoles": [
				"atlassian/org-admin"
			],
			"picture": "https://picture.example.com/picture.png",
			"avatar": "https://avatar.example.com/avatar.png",
			"managementSource": "invited",
			"mfaEnabled": true,
			"jobTitle": "Senior Business Analyst",
			"department": "Human Resources",
			"organization": "Talent",
			"location": "New York",
			"timeZone": "America/New_York",
			"counts": {
				"resources": 10
			},
			"links": {
				"self": "ECg53CukK1twBo0LK1u9nw"
			}
		}
	],
	"links": {
		"self": "ObSbZxpM1f1fzia2_GnuJw",
		"prev": "LIZFEbzCT2pCCkQhPIUgIQ",
		"next": "kloHX1ZQVasDAkx_P48NYQ"
	}
}
```

## Workflow Library Example

[List Organization Users with Atlassian Organizations and Send Results Via Email](https://library.blinkops.com/workflows/list-organization-users-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-users-with-atlassian-organizations-and-send-results-via-email/canvas" />
</div>
