Skip to content
Back to skills

Provision Calling

ASecurity

Provision Webex Calling users, locations, and licenses via the wxcli CLI. Also covers People API profile updates (alternate phone numbers, display name, phoneNumbers array including alternate1/alternate2), number inventory management, and bulk CSV import. Also covers org-wide calling service defaults (announcement language list, org voicemail settings and passcode rules, org music on hold, large org status, org call captions) via the calling-service group. Guides through auth verification, pr...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
businesspythongoshellbashapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add achobgood/wxops --skill provision-calling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Provision Calling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Provision Calling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/achobgood-provision-calling/badge)](https://www.skillsdirectory.com/skills/achobgood-provision-calling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: provision-calling
description: |
  Provision Webex Calling users, locations, and licenses via the wxcli CLI.
  Also covers People API profile updates (alternate phone numbers, display name,
  phoneNumbers array including alternate1/alternate2), number inventory management,
  and bulk CSV import. Also covers org-wide calling service defaults (announcement
  language list, org voicemail settings and passcode rules, org music on hold,
  large org status, org call captions) via the calling-service group.
  Guides through auth verification, prerequisite checks,
  deployment planning, execution, and result verification for any provisioning operation.
  Use for: create, enable, assign, bulk provision, update user profile fields.
allowed-tools: Read, Grep, Glob, Bash
argument-hint: [operation — e.g. "create location", "enable user", "assign license", "bulk provision", "org calling defaults"]
---

<!-- Updated by playbook session 2026-03-18 -->

# Provision Calling Workflow

**Checkpoint — do NOT proceed until you can answer these:**
1. Can `location_id` be changed after a calling license is assigned? (Answer: No — it is write-once via `people update` / `licenses update`. Wrong location = run the Move Users job (`wxcli user-settings create-move-location`, see Operation D) or remove and re-add the calling license.)
2. What case must `announcement_language` use? (Answer: lowercase only — `en_us` not `en_US`. Mixed case causes "Invalid Language Code" error.)

If you cannot answer both, you skipped reading this skill. Go back and read it.

## Step 1: Load references

1. Read `docs/reference/provisioning.md` for People, Licenses, and Locations API patterns
2. For org-level calling defaults (Operation G) only, read `docs/reference/location-calling-core.md` § "CLI: `calling-service` (Org-Level Calling Service Settings)" — skip this unless the user asks about org-wide voicemail, music on hold, or call captions

**Mandatory --help verification:** Before constructing any wxcli command, run `wxcli <group> --help` to verify the subcommand exists, then `wxcli <group> <subcommand> --help` to verify the exact flags. Do NOT rely on examples in this skill or reference docs — the CLI is auto-generated and flag names may differ from what documentation suggests.

## Step 2: Verify auth token is working

Before any provisioning operation, confirm the token is valid and has admin scopes.

```bash
wxcli whoami
```

If this fails with 401/403, stop and troubleshoot auth before proceeding. Common causes:
- Token expired (personal access tokens last 12 hours)
- Token not configured — run `wxcli configure` or check `~/.wxcli/config.json`
- Token lacks admin scopes (`spark-admin:people_write`, `spark-admin:licenses_read`, etc.)

## Step 3: Determine the operation

Ask the user which provisioning operation they need. The seven supported operations are:

| Operation | What It Does | Prerequisites |
|-----------|-------------|---------------|
| **Create location** | Add a new physical location | Admin token with `spark-admin:locations_write` |
| **Enable location for calling** | Turn on Webex Calling for an existing location | Location must exist; `spark-admin:telephony_config_write` |
| **Create user** | Add a new person to the org | Admin token with `spark-admin:people_write` |
| **Enable user for calling** | Assign calling license + location + extension to existing user | Location must exist; calling license available |
| **Assign/change licenses** | Add or remove licenses on a user | License with available capacity |
| **Bulk provision** | Provision multiple users in one run | All of the above |
| **Org-wide calling defaults** | Read/set org voicemail, music on hold, call captions; look up valid announcement language codes | Admin token with `spark-admin:telephony_config_write` |

Confirm with the user before proceeding:
- **Which operation** from the table above
- **Target details** (location name/address, user email, license type, etc.)
- **For bulk**: CSV or list of users to provision

## Step 4: Check prerequisites

Run these checks based on the operation. **Stop and report** if any prerequisite fails.

### For location creation:
```bash
# Check if location name already exists
wxcli locations list --name "target name"
# Look for a match in the output. If the target name appears:
wxcli locations show LOCATION_ID
# Ask user: update existing or abort?
```

### For user provisioning:
```bash
# 1. Verify location exists and is calling-enabled
wxcli location-settings list-1
# Confirm target location appears (only calling-enabled locations are returned)

# 2. Find an available calling license with capacity
wxcli licenses list
# Look for "Webex Calling - Professional" with consumed < total

# 3. Check if user already exists
wxcli users list --email target@example.com --output json
# If user exists, check if already calling-enabled:
wxcli users show PERSON_ID --output json
# If location_id is set, user is already calling-enabled.
# Ask user: update or abort?

# 4. Verify email domain is provisioned in this org
# No CLI command lists currently-claimed org domains — the `domains` group only
# supports get-domain-verification / verify-domain / claim-domain / unverify-domain /
# unclaim-domain (see manage-identity skill for the verification flow). If domain
# status is unknown, check Control Hub, or attempt user creation and watch for a
# domain authorization error; resolve via manage-identity's domain verification
# flow before retrying.
```

### For phone number assignment:
```bash
# Verify number is in location inventory before assigning to a user
# Numbers must be added to location first via numbers-manage commands
wxcli numbers create LOCATION_ID --json-body '{"phoneNumbers": ["+15551234567"], "numberType": "DID"}'
```
Verified live 2026-10-13 on the sandbox tenant: the body shape is accepted, but the add was refused — `404 "Location ... not found or PSTN for the location is not configured"` on a location with no PSTN, and `400 ERR.V.TRM.PSP61001 "Order creation failed on PSTN provider"` on Site1. `numbers validate-phone-numbers` said `Available` for the same numbers, so it does not predict this. Check PSTN is configured at the location before promising number adds. (Success path not exercised.)

## Step 5: Build deployment plan — [SHOW BEFORE EXECUTING]

**Present the plan to the user and wait for approval.** Never execute without confirmation.

Format the plan as:

```
=== Provisioning Plan ===

Operation: [Create Location / Enable User / etc.]

Target:
  - [specific details]

Steps:
  1. [First CLI command — what it does]
  2. [Second CLI command — what it does]
  3. Verify: [what we'll check after]

Prerequisites verified:
  ✓ Auth token valid (authenticated as [name])
  ✓ Location exists: [name] ([id])
  ✓ License available: [name] ([consumed]/[total])
  ✓ [any other checks]

Proceed? [wait for user confirmation]
```

## Step 6: Execute the provisioning operation

### Operation A: Create a Location

Required: name, time zone, preferred language, announcement language, and an address. There is no address flag, and `--json-body` **overrides** the other flags — so pass everything in the one JSON body. (Verified live 2026-10-13: flags plus an address-only `--json-body` fails `400 "location name cannot be null or empty"`.)

```bash
wxcli locations create --json-body '{"name":"San Jose Office","timeZone":"America/Los_Angeles","preferredLanguage":"en_US","announcementLanguage":"en_us","address":{"address1":"123 Main St","city":"San Jose","state":"CA","postalCode":"95113","country":"US"}}'
```

Verified live 2026-10-13: returns `201` and the new location ID.

### Operation B: Enable Location for Calling

Creating a location does NOT automatically enable calling. Separate command required.

First, fetch the location details you'll need:
```bash
wxcli locations show LOCATION_ID
```

Then enable calling using those details. The `address` is **required** and there is no address flag, so use `--json-body` (verified live 2026-10-13: the flags-only form — and a JSON body without `address` — returned `400 "Validation failure"`; adding the `address` object returned `201`):
```bash
wxcli location-settings create --json-body '{"id":"LOCATION_ID","name":"San Jose Office","timeZone":"America/Los_Angeles","preferredLanguage":"en_US","announcementLanguage":"en_us","address":{"address1":"123 Main St","city":"San Jose","state":"CA","postalCode":"95113","country":"US"}}'
```

**Important:** `announcement_language` must be lowercase (`en_us` not `en_US`) or the API rejects with "Invalid Language Code" (verified live 2026-10-13: `400 errorCode '25046', 'Invalid Language Code.: en_US'`). Note `wxcli locations show` does not return `announcementLanguage` at all, so read it from your own plan, not from the location.

To confirm a language code before using it, list the announcement languages the org supports — the `code` field is the exact value to pass to `--announcement-language`, already lowercase:

```bash
wxcli calling-service list
```

Verified live: returns 42 languages as `{"name": "Italian", "code": "it_it"}` pairs. See Operation G for the rest of the `calling-service` group.

**Note:** Teardown of a calling-enabled location is fully API-driven — Control Hub is not required. Clear visible blockers, then disable calling with `wxcli location-settings create-delete-calling-location --location-id LOCATION_ID --location-name "NAME"`, poll `wxcli location-settings show-delete-calling-location JOB_ID` until `latestExecutionStatus: COMPLETED`, then `wxcli locations delete --force LOCATION_ID`. See the teardown skill for the full 409 decision tree. Verified live 2026-10-13: only one disable job can run per org at a time — a second `create-delete-calling-location` started before the first reached `COMPLETED` returned `409 "Customer has job of same type already running"` (`BATCH-1001004`); the CLI's "delete the dependents first" tip printed with it was misleading for this error. Since 2026-10-13 the CLI keys on `BATCH-1001004` / the message and says another job of the same type is still running — wait for it and retry (unit-tested; not re-run live).

### Operation C: Create a New User

**Before creating:** confirm the user's `firstName`, `lastName`, and `displayName` with the requester. Do not use email-derived placeholders (e.g., `jsmith`/`example`) — they produce incorrect directory entries and cannot be changed without a separate update call.

```bash
wxcli users create \
  --json-body '{"emails":["jsmith@example.com"],"firstName":"John","lastName":"Smith","displayName":"John Smith"}'
```

To create a calling user in one call (`licenses` + `locationId` + `extension` in the body) you **must** add `--calling-data true`; verified live 2026-10-13, the same body without it returns `400 "Calling flag not set"` (and creates nothing).

**Gotcha:** A POST that returns 400 may **still have created the person**. Verified live 2026-10-13: a calling create with a `phoneNumbers` entry not in the location's inventory returned `400 "[Error 4250] ... phone number(s) not added"`, yet the person existed afterwards with licenses but no extension or location. Always check with a GET before retrying:
```bash
wxcli users list --email jsmith@example.com --output json
```

### Operation D: Enable Existing User for Calling

Assign a calling license, location, and extension to an existing user.

```bash
# Look up current user state
wxcli users show PERSON_ID --output json

# Look up the calling license ID
wxcli licenses list --output json
# Find the license where name contains "Calling - Professional"

# Assign the calling license with location and extension
wxcli licenses update --person-id PERSON_ID --json-body '{
  "email": "jsmith@example.com",
  "licenses": [{
    "id": "CALLING_LICENSE_ID",
    "properties": {
      "locationId": "LOCATION_ID",
      "extension": "1001"
    }
  }]
}'
```

**Key constraints:**
- `location_id` is **write-once** — can only be set on initial calling license assignment, cannot be changed after
- `extension` value must NOT include the location routing prefix
- Either `phone_number` or `extension` is mandatory for calling licenses
- To move a user, use the Move Users job: `wxcli user-settings create-move-location --json-body '{"usersList":[{"locationId":"NEW_LOC","validate":true,"users":[{"userId":"PERSON_ID","extension":"1001"}]}]}'` (run with `"validate":true` first to see the `impacts`, then `false`), then poll `wxcli user-settings show-move-location JOB_ID` to `COMPLETED`. Verified live 2026-10-13: the job moved a calling user between two calling-enabled locations (`moved: 1, failed: 0`, new `locationId` and unchanged extension read back), whereas `wxcli people update PERSON_ID --display-name N --location-id NEW_LOC` fails `400 "Failed to update people. Delete Calling Location in request is invalid"`. Removing the calling license and re-adding it with the new location is the fallback, but removal clears the extension and location (verified live) and, per `admin-licensing.md`, the user's other calling settings.
- An extension with no `locationId` is rejected: verified live 2026-10-13, `"properties":{"extension":"1004"}` on a user with no prior location returned `400 "Unable to find location."`. (If an earlier failed create already stamped a `locationId` on the person, the same call can succeed — read the person back before relying on it.)

### Operation E: Bulk Provision

**Before running:** confirm `firstName`, `lastName`, and `displayName` for each user with the requester. Do not derive names from email aliases.

For small batches (< 20 users), pair each create with an immediate license assignment in a single loop:

```bash
LOCATION_ID="<location_id>"
LICENSE_ID="<calling_license_id>"
EXT=1001

for email in user1@example.com user2@example.com user3@example.com; do
  echo "=== Provisioning $email ==="

  # Step 1: Create the user — capture the returned person ID
  PERSON_ID=$(wxcli people create -o json \
    --json-body "{\"emails\":[\"$email\"],\"firstName\":\"First\",\"lastName\":\"Last\",\"displayName\":\"First Last\"}" \
    | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")
  echo "Created: $email → $PERSON_ID"

  # Step 2: Assign calling license with location and extension
  wxcli licenses update --person-id "$PERSON_ID" --json-body "{
    \"email\": \"$email\",
    \"licenses\": [{
      \"id\": \"$LICENSE_ID\",
      \"operation\": \"add\",
      \"properties\": {
        \"locationId\": \"$LOCATION_ID\",
        \"extension\": \"$EXT\"
      }
    }]
  }"
  echo "Enabled for calling: ext $EXT"

  EXT=$((EXT + 1))
done
```

**Note:** If `people create` returns 400, the user may still have been created. Check with `wxcli people list --email <email>` before retrying. If the user exists, skip the create and run only the `licenses update` step with the existing person ID.

> **Bulk operations (50+ users):** Shell loops with `sleep 1` work for small batches. For large batches, use the migration engine's async pattern, which handles concurrency, rate limiting, and retry automatically.

### Operation F: Teardown / Delete Location

**For teardown operations, load the `teardown` skill.** It covers single-location teardown, multi-location bulk cleanup, and org reset with the full dependency-safe deletion order and `wxcli cleanup` automation.

Delete-related critical rules (13-15) below still apply.

### Operation G: Org-Wide Calling Service Defaults

The `calling-service` group holds calling settings that apply to the **whole org**, not to a location and not to a person. These are the defaults new locations and users inherit, so they are worth reading during org bootstrap and before bulk provisioning.

Scope check: if the setting is per-location, use the `configure-features` skill. If it is per-person, use `manage-call-settings`. Only org-wide defaults live here.

| Command | What it reads/sets | When you need it |
|---------|-------------------|------------------|
| `calling-service list` | Announcement languages (`name` + `code`) | Look up a valid `--announcement-language` code (Operation B) |
| `calling-service show` / `update` | Org voicemail settings — message expiry, strict deletion, email forwarding | Set org voicemail retention before provisioning users |
| `calling-service show-rules` / `update-rules` | Org voicemail passcode policy — default PIN, expiry, reuse blocking | Set the PIN policy new users inherit |
| `calling-service show-settings` / `update-settings` | Org default music on hold | Choose `OPUS` or `LEGACY` org-wide |
| `calling-service show-large-org-status` | Whether the org crosses the large-org threshold | Check before bulk provisioning — large orgs behave differently |
| `calling-service show-call-captions` / `update-call-captions` | Org closed captions and transcripts | Enable/disable captions org-wide |

**Data (storage) policy region** is a separate group, `data-policies` — it sets the country where the org's calling data is stored, at org level or per location. Upstream moved this off the call recording vendor endpoints, so `call-recording ... --storage-region` no longer exists.

| Command | What it reads/sets |
|---------|-------------------|
| `data-policies list` | Storage regions available to configure (`code`/`name`/`isVoicemailStorageRestrictionEnabled`) |
| `data-policies show` / `update` | Org-level storage region (`--org-data-region`, ISO 3166-1 alpha-2) |
| `data-policies show-data-policies` / `update-data-policies` | Per-location storage region, or inherit the org's |

`data-policies list` is how you discover valid region codes before setting `--org-data-region` or `--location-data-region` — its table is the only source of truth for what's configurable; don't guess a code.

```bash
# Which regions can be configured
wxcli data-policies list -o json
```
Verified live: 9 regions — `AU`, `CA`, `DE`, `GB`, `JP`, `SG`, `SA`, `IN`, `US` — each as `{"code": "US", "name": "United States", "isVoicemailStorageRestrictionEnabled": false}`. Only `SA` (Saudi Arabia) has voicemail storage restriction enabled today.

```bash
# What the org uses today
wxcli data-policies show
```
Verified live: `{"orgDataRegion": "US", "allowEditEnabled": true}`.

```bash
# What a specific location uses today
wxcli data-policies show-data-policies LOCATION_ID
```
Verified live: `{"useOrgDataRegionEnabled": true, "orgDataRegion": "US", "allowEditEnabled": true}`. A location inheriting the org's region still reports it under `orgDataRegion` — there is no separate `locationDataRegion` field until the location is set to its own region.

**Write commands (verified live 2026-10-13: org no-op `update --org-data-region US` and a temp location's region set to CA then reset, each read back with `--verify`):**

```bash
# Set the org-level storage region
wxcli data-policies update --org-data-region US

# Set a location's region, or have it inherit the org-level one
wxcli data-policies update-data-policies LOCATION_ID --location-data-region US
wxcli data-policies update-data-policies LOCATION_ID --use-org-data-region-enabled
wxcli data-policies update-data-policies LOCATION_ID --no-use-org-data-region-enabled
```

Both writes also accept `--json-body` / `--generate-json-body` for the same fields (`{"orgDataRegion":"..."}` and `{"locationDataRegion":"...","useOrgDataRegionEnabled":true}` respectively).

Verified live 2026-10-13: `--location-data-region CA` **alone does not switch the location off the org's region** — the read-back showed `"locationDataRegion":"CA","useOrgDataRegionEnabled":true`. Pass `--no-use-org-data-region-enabled` together with it to flip the flag to `false`. Switching back with `--use-org-data-region-enabled` leaves `locationDataRegion` in the response (it is not cleared), so a `locationDataRegion` field is not proof the location overrides the org.


**Read the current org defaults (all read-only, safe to run during prerequisite checks):**

```bash
# Announcement languages — returns {"name": "Italian", "code": "it_it"} pairs
wxcli calling-service list

# TTS-capable languages only (--tts-language is a boolean filter)
wxcli calling-service list --tts-language true

# Org voicemail settings
wxcli calling-service show

# Org voicemail passcode rules
wxcli calling-service show-rules

# Org default music on hold
wxcli calling-service show-settings

# Large org status
wxcli calling-service show-large-org-status

# Org call captions / transcripts
wxcli calling-service show-call-captions
```

**Change org defaults (write — these hit every user in the org; show the plan and get approval first):**

```bash
# Expire voicemail messages after 30 days
wxcli calling-service update --message-expiry-enabled --number-of-days-for-message-expiry 30

# Turn message expiry back off (paired --no- flags exist for every boolean here)
wxcli calling-service update --no-message-expiry-enabled

# Set the org default music on hold — valid values are OPUS or LEGACY
wxcli calling-service update-settings --default-org-moh "OPUS"

# Enable org-level closed captions and transcripts
wxcli calling-service update-call-captions --org-closed-captions-enabled --org-transcripts-enabled
```

`update-rules` (voicemail passcode policy) has nested fields that the flags do not cover — use `--json-body`:

```bash
wxcli calling-service update-rules --json-body '{
  "defaultVoicemailPinEnabled": true,
  "expirePasscode": {"enabled": true, "numberOfDays": 90},
  "changePasscode": {"enabled": true, "numberOfDays": 1},
  "blockPreviousPasscodes": {"enabled": true, "numberOfPasscodes": 3}
}'
```

Verified live 2026-10-13 (round-trip of the org's current values, then a flip of `defaultVoicemailPinEnabled` to `true` with a `defaultVoicemailPin`, then restored): the write body takes `defaultVoicemailPinEnabled` at the **top level**, but `show-rules` returns it **nested** as `defaultVoicemailPinRules.defaultVoicemailPinEnabled` — so `--verify` reported a false mismatch (`now '<not present in read-back>'`) even when the write took; since ADR-17 it lists the field as "could not be verified" instead (unit-tested; not re-run live), which still means "check it yourself". Read it back with `wxcli calling-service show-rules --fields "defaultVoicemailPinRules.defaultVoicemailPinEnabled"`. Likewise, every `update` here prints `{"status": "updated"}`, which proves only that the request was accepted.

Verified live 2026-10-13 (change + restore on the sandbox): `calling-service update --message-expiry-enabled --number-of-days-for-message-expiry 30 --verify` took effect (`show` read back `true` / `30`) but `--verify` reported `numberOfDaysForMessageExpiry: sent '30', now 30` — a false mismatch, because the numeric flag is sent as the string `'30'` and read back as the number 30. Since ADR-17 `--verify` treats `'30'` and `30` as equal, so this case should now print `all 2 sent field(s) match` (unit-tested; not re-run live). The `show` read-back stays the proof. `update --no-message-expiry-enabled` alone works (it leaves `numberOfDaysForMessageExpiry` as is), and `update-settings --default-org-moh OPUS` / `LEGACY` verified clean.

Read back after any write — every one of these is a `show` away:

```bash
wxcli calling-service show
wxcli calling-service show-settings
wxcli calling-service show-call-captions
```

## Step 7: Verify results

Always read back the created/updated resources to confirm.

### Verify a user:
```bash
wxcli users show PERSON_ID --output json
# Confirm: location_id is set, calling license appears in licenses list, extension is correct
```

### Verify a location:
```bash
wxcli locations show LOCATION_ID --output json
# Confirm: name, address, timezone are correct
```

### Verify bulk:
```bash
# List all users at a location -- --calling-data true is REQUIRED with --location-id
# (verified live 2026-10-13: without it the call fails 400 "Calling flag not set"),
# and --all so a count is not just page one
wxcli users list --location-id LOCATION_ID --calling-data true --all --output json
# Count results to confirm expected number of users provisioned
```

## Step 8: Report results

Summarize what was done:

```
=== Provisioning Complete ===

Operation: [what was done]
Results:
  - [resource]: [status] ([id])
  - [resource]: [status] ([id])

Verification:
  ✓ [what was confirmed]

Next steps:
  - [any follow-up actions needed]
```

---

## Critical Rules

1. **ALWAYS test auth first** — Run `wxcli whoami` before any provisioning call. Do not proceed on auth failure.

2. **ALWAYS show plan before executing** — Present the deployment plan and wait for user confirmation. Never provision without approval.

3. **`location_id` is write-once** — Can only be set when first assigning a calling license. Cannot be changed after (verified live 2026-10-13: `people update --location-id` returns `400 "Delete Calling Location in request is invalid"`). To move a user, use the Move Users job (Operation D) or remove the calling license and re-add it with the new location.

4. **`announcement_language` must be lowercase** — `en_us` not `en_US`. The telephony `enable_for_calling` API rejects mixed case with "Invalid Language Code".

5. **`announcement_language` returns None from details** — Always set it explicitly before calling `enable_for_calling`, even if it was set during creation.

6. **Disabling calling on a location IS an API operation** — `wxcli location-settings create-delete-calling-location` runs it as an async job. For teardown: remove visible blockers, run `wxcli location-settings safe-delete-check LOCATION_ID` (UNBLOCKED means "no dependencies", *not* "deletable now"), then disable calling and poll `wxcli location-settings show-delete-calling-location JOB_ID` to `COMPLETED` before retrying the delete. The older `wxcli location-settings update-location-calling ...` guidance is stale; so is any claim that Control Hub is required.

7. **Phone numbers must be in location inventory first** — Before assigning a DID to a user, add it via `wxcli numbers create LOCATION_ID`.

8. **POST/PUT may partially succeed** — A 400 response on user create/update may have still created/modified the resource. Always verify with a subsequent GET before retrying.

9. **License IDs are org-specific base64 strings** — Never hardcode them. Always retrieve via `wxcli licenses list`.

10. **Extension values must NOT include the routing prefix** — Set extension to `1001`. When the location has a routing prefix, the work_extension in the response will include it (e.g., `8001001`); at a location with none (Site1 in the sandbox, verified live 2026-10-13) it reads back bare (`8892`). When writing, always omit it. To check for extension conflicts before assigning, run `wxcli numbers list --location-id LOCATION_ID` and scan the extension column.

11. **Log all operations** — Print what you're about to do before each CLI command, and print the result after. This creates an audit trail for troubleshooting.

12. **For bulk operations (50+ users), use the migration engine's async pattern** — wxcli runs one command at a time. For large batches, the proven async pattern handles concurrency, rate limiting, and retry. For smaller batches (<50), shell loops with `sleep 1` suffice.

13. **Location-scoped feature deletes require LOCATION_ID as FIRST argument** — `wxcli hunt-group delete --force LOCATION_ID HG_ID`, not `hunt-group delete --force HG_ID`. The LOCATION_ID comes before the feature ID.

14. **Always use `--force` for programmatic deletes** — Without `--force`, delete commands prompt `[y/N]` which blocks non-interactive execution.

15. **Routing delete commands use PLURAL names** — `delete-route-groups`, `delete-trunks`, `delete-route-lists`. The singular form (`delete-route-group`) does not exist.

16. **`calling-service` is org-wide, not per-location** — Every `update*` in that group changes the default for the entire org, including users you did not provision. There is no location or person argument to scope it. Treat these as high-blast-radius writes and get explicit approval.

17. **`calling-service` command names do not say what they touch** — The generated names are generic: `show`/`update` are **voicemail** settings, `show-settings`/`update-settings` are **music on hold**, and `list` is **announcement languages**. Read the Operation G table before running any of them; the name alone will mislead you.

---

## Error Handling

When a wxcli command fails:

**A. Fix and retry** — Missing required field, wrong ID, format issue:
1. Read the full error message
2. Run `wxcli <group> <command> --help` to check required flags
3. Fix the command and retry

**B. Skip and continue** — Resource already exists or already configured:
1. Verify current state: `wxcli users show PERSON_ID` or `wxcli locations show LOCATION_ID`
2. If state is correct, skip to next operation

**C. Escalate** — Unclear or persistent error:
1. Run with `--debug` for raw HTTP details
2. Invoke `/wxc-calling-debug` for systematic diagnosis

**D. 409 Conflict (50003 "Location is being referenced")**

The location still has dependent resources. Load the `teardown` skill and follow its enumeration procedure. If all resources are deleted and the 409 persists, calling is still enabled — disable it and wait 90+ seconds.

Provisioning-specific errors:
- 400 on `users create`: Check email format, verify no existing user with same email
- 400 on `numbers create`: Check E.164 format (+1XXXXXXXXXX), verify number not already assigned
- 403: Check token has `spark-admin:people_write` and `spark-admin:telephony_config_write` scopes
- 409: User/location already exists — GET current state first

---

## Required Scopes Reference

| Operation | Scope(s) |
|-----------|----------|
| List/view people | `spark-admin:people_read` |
| Create/update/delete people | `spark-admin:people_write` + `spark-admin:people_read` |
| List licenses | `spark-admin:licenses_read` |
| Assign licenses (PATCH) | `spark-admin:people_write` |
| List/view locations | `spark-admin:locations_read` |
| Create/update/delete locations | `spark-admin:locations_write` |
| Enable location for calling | `spark-admin:telephony_config_write` |

---

## License Lookup Quick Reference

> For bulk license assignment, usage auditing, and reclamation workflows, see the `manage-licensing` skill. The `licenses update` command provides CLI-native license assignment (`licenses-api` remains a deprecated alias for one release).

```bash
# List all licenses — look for "Webex Calling - Professional" with available capacity
wxcli licenses list

# Key license types to look for in the output:
#   "Webex Calling - Professional"   — full calling license
#   "Webex Calling - Basic"          — basic calling (limited features)
#   "Webex Calling - Workspaces"     — for workspace devices
# Check that consumed < total for the license you need
```

---

## Two License Assignment Methods

| | Method A: People API PUT | Method B: Licenses PATCH API |
|---|---|---|
| **CLI equivalent** | `wxcli users update` (modify user fields; `--display-name` is mandatory on every update) | `wxcli licenses update` (PATCH `/licenses/users`; verified live 2026-10-13 — 200, calling license + location + extension assigned and read back) |
| **Best for** | Migrating existing users, changing multiple Person fields | Net-new provisioning, SCIM users, atomic license+location+extension |
| **Gotcha** | Must GET full person first, include ALL fields in PUT | Requires extension or phone_number for calling licenses |
| **Can combine add+remove** | Manually modify the licenses list | Yes, add + remove operations in same call |

---

## Context Compaction Recovery

If context compacts mid-execution, recover by:
1. Read the deployment plan from `docs/plans/` to recover what was planned
2. Check what's already been created: run the relevant `list` commands
3. Resume from the first incomplete step

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.