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

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

# operations/orgs

Account Manager organization management operations.

This module provides high-level functions for managing organizations in Account Manager,
including retrieving organization details.

## Core Organization Functions

- [getOrg](functions/getOrg.md) - Get organization details by ID
- [getOrgByName](functions/getOrgByName.md) - Get organization details by name
- [listOrgs](functions/listOrgs.md) - List organizations with pagination

## Usage

```typescript
import {
  getOrg,
  getOrgByName,
  listOrgs,
} from '@salesforce/b2c-tooling-sdk/operations/orgs';
import {createAccountManagerOrgsClient} from '@salesforce/b2c-tooling-sdk/clients';
import {OAuthStrategy} from '@salesforce/b2c-tooling-sdk/auth';

const auth = new OAuthStrategy({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
});

const client = createAccountManagerOrgsClient({}, auth);

// Get an organization by ID
const org = await getOrg(client, 'org-id');

// Get an organization by name
const org = await getOrgByName(client, 'My Organization');

// List organizations
const orgs = await listOrgs(client, {size: 25, page: 0});
```

## Authentication

Organization operations require OAuth authentication with appropriate Account Manager permissions.

## Functions

- [getOrg](functions/getOrg.md)
- [getOrgByName](functions/getOrgByName.md)
- [listOrgs](functions/listOrgs.md)

## References

### AccountManagerOrganization

Re-exports [AccountManagerOrganization](../../clients/interfaces/AccountManagerOrganization.md)

***

### ListOrgsOptions

Re-exports [ListOrgsOptions](../../clients/interfaces/ListOrgsOptions.md)

***

### OrganizationCollection

Re-exports [OrganizationCollection](../../clients/interfaces/OrganizationCollection.md)
