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

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

# Function: getOrg()

> **getOrg**(`client`, `orgId`): `Promise`\<[`AccountManagerOrganization`](../../../clients/interfaces/AccountManagerOrganization.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/orgs/index.ts:70](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/orgs/index.ts#L70)

Gets an organization by ID.

## Parameters

### client

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

Account Manager Organizations client

### orgId

`string`

Organization ID

## Returns

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

Organization details

## Throws

Error if organization is not found
