Skip to content

@salesforce/b2c-tooling-sdk / 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 - Get organization details by ID
  • getOrgByName - Get organization details by name
  • listOrgs - 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 ​

References ​

AccountManagerOrganization ​

Re-exports AccountManagerOrganization


ListOrgsOptions ​

Re-exports ListOrgsOptions


OrganizationCollection ​

Re-exports OrganizationCollection

Released under the Apache-2.0 License.