---
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:76](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/orgs/index.ts#L76)

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

If the organization is not found (404), authentication fails (401), permission is denied (403), or other request failures occur
