---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/orgs](../index.md) / listOrgs

# Function: listOrgs()

> **listOrgs**(`client`, `options?`): `Promise`\<[`OrganizationCollection`](../../../clients/interfaces/OrganizationCollection.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/orgs/index.ts:102](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/orgs/index.ts#L102)

Lists organizations with pagination.

## Parameters

### client

[`AccountManagerOrgsClient`](../../../clients/interfaces/AccountManagerOrgsClient.md)

Account Manager Organizations client

### options?

[`ListOrgsOptions`](../../../clients/interfaces/ListOrgsOptions.md)

Pagination options. Set `all: true` to retrieve all organizations using the max page size of 5000

## Returns

`Promise`\<[`OrganizationCollection`](../../../clients/interfaces/OrganizationCollection.md)\>

Paginated organization collection with pagination metadata (totalElements, totalPages, number, size)
