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

# Search Organizations

Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not necessarily appear at the end of the results, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get`.

<Note>
  External Documentation

  To learn more, visit the [GCP documentation](https://docs.cloud.google.com/resource-manager/reference/rest/v3/organizations/search).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Query            | Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. <pre><code>\| Field \| Description \| \|------------------\|--------------------------------------------\| \| directoryCustomerId, owner.directoryCustomerId \| Filters by directory customer id. \| \| domain \| Filters by domain. \|</code></pre> Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: \* Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`. \* Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`. |
  | Return All Pages | Automatically fetch all resources, page by page.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                             |
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Page Size | Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. |
</div>

## Example Output

```json theme={"dark"}
{
	"organizations": [
		{
			"name": "organizations/12345678910",
			"displayName": "example.com",
			"directoryCustomerId": "C022upqx2",
			"state": "ACTIVE",
			"createTime": "2021-02-28T03:43:59.019Z",
			"updateTime": "2021-02-28T03:43:59.795Z",
			"etag": "h1pjxpNSZHoVUXHcowwzdg=="
		}
	]
}
```

## Workflow Library Example

[Search Organizations with Gcp and Send Results Via Email](https://library.blinkops.com/workflows/search-organizations-with-gcp-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/search-organizations-with-gcp-and-send-results-via-email/canvas" />
</div>
