Loading...
Loading...
Manage Account Manager resources (API clients, users, roles, organizations) with the b2c cli. Use this skill whenever working with SFCC/B2C Commerce user management, role assignments, API client provisioning, organization lookup, user onboarding/offboarding, or auditing Account Manager permissions. Also use when granting Business Manager roles, creating API clients for CI/CD, or managing tenant-scoped role assignments.
npx skill4agent add salesforcecommercecloud/b2c-developer-tooling b2c-amb2c amTip: Ifis not installed globally, useb2cinstead (e.g.,npx @salesforce/b2c-cli).npx @salesforce/b2c-cli am clients list
--client-id--client-secretSFCC_CLIENT_IDSFCC_CLIENT_SECRET--user-auth| Operations | Client Credentials (roles on API client) | User Auth (roles on user account) |
|---|---|---|
| Users & Roles | User Administrator | Account Administrator or User Administrator |
| Organizations | Not supported -- use | Account Administrator |
| API Clients | Not supported -- use | Account Administrator or API Administrator |
b2c am clients list
# with pagination
b2c am clients list --size 50 --page 2
# JSON output
b2c am clients list --json# by UUID
b2c am clients get <api-client-id>
# with expanded organizations and roles
b2c am clients get <api-client-id> --expand organizations --expand rolesb2c am clients create \
--name "My API Client" \
--orgs <org-id> \
--password "securePassword123"
# with roles, role tenant filter, and redirect URLs
b2c am clients create \
--name "CI/CD Pipeline" \
--orgs <org-id> \
--password "securePassword123" \
--roles SALESFORCE_COMMERCE_API \
--role-tenant-filter "SALESFORCE_COMMERCE_API:zzxy_prd" \
--redirect-urls "https://example.com/callback" \
--activeb2c am clients update <api-client-id> --name "New Name"
b2c am clients update <api-client-id> --activeb2c am clients password <api-client-id> --current "oldPass" --new "newSecurePass123"b2c am clients delete <api-client-id>b2c am users list
# with extended columns (roles, organizations)
b2c am users list --extended
# JSON output with pagination
b2c am users list --size 100 --jsonb2c am users get user@example.com
# with expanded roles and organizations
b2c am users get user@example.com --expand-allb2c am users create \
--org "My Organization" \
--mail user@example.com \
--first-name Jane \
--last-name Doe--orgb2c am users update user@example.com --first-name Janet --last-name Smith--purge# soft delete
b2c am users delete user@example.com
# hard delete (purge)
b2c am users delete developer@example.com --purgeb2c am users reset user@example.comb2c am roles list
# filter by target type
b2c am roles list --target-type User
b2c am roles list --target-type ApiClientb2c am roles get bm-admin
b2c am roles get SLAS_ORGANIZATION_ADMINb2c am roles grant user@example.com --role bm-admin
# with tenant scope
b2c am roles grant user@example.com --role bm-admin --scope zzzz_001,zzzz_002# revoke entire role
b2c am roles revoke user@example.com --role bm-admin
# revoke specific tenant scopes only
b2c am roles revoke user@example.com --role bm-admin --scope zzzz_001b2c am orgs list
# all organizations (max page size)
b2c am orgs list --all
# extended columns
b2c am orgs list --extendedb2c am orgs get <org-id>
b2c am orgs get "My Organization"# Create the user
b2c am users create --org $ORG_ID --mail developer@example.com \
--first-name Alex --last-name Developer
# Grant Business Manager Admin role scoped to a specific tenant
b2c am roles grant developer@example.com --role bm-admin --scope zzxy_prd# Revoke roles
b2c am roles revoke developer@example.com --role bm-admin
# Soft delete the user
b2c am users delete developer@example.com
# Permanent deletion (user must be in DELETED state first)
b2c am users delete developer@example.com --purge# Export all users as JSON
b2c am users list --size 4000 --json
# Pipe to jq for filtering
b2c am users list --json | jq '.[] | select(.userState == "ACTIVE")'am--json--columns--extended--size--pageb2c am --help