Commvault SnapDiff v3 backup fails with HTTP 403 Forbidden on ONTAP - Could not get an Access Token
Applies to
ONTAP 9.10.1 and later
Issue
A Commvault IntelliSnap SnapDiff v3 backup or snapshot-catalog job fails with the following symptoms:
- Commvault client log (CVLibCurl trace) reports:
Please set array [<data_svm_array>] to tunnel to its cluster array. And confirm the cluster array entry has a role on the file server which allows access_tokens.
- Commvault job error message:
Could not get an Access Token
- ONTAP cluster security audit log shows the access-token REST call returning HTTP 403:
<cluster_name>: http :: <media_agent_ip>:<src_port> :: <data_svm>:<svm_user> :: POST /api/cluster/licensing/access_tokens :: {"grant_type":"client_credentials","client_id":"Commvault","client_secret":***} :: Error: Forbidden - Failure occurs on configurations that previously worked with SnapDiff v1 or v2 after:
- A Commvault SP or HF upgrade that enabled SnapDiff v3
- First-time enablement of Snapshot Cataloging or Backup Copy with SnapDiff v3
Cause
Two conditions, typically present together, produce this failure:
Cause 1 — ONTAP login is SVM-scoped; the access_tokens endpoint is cluster-scoped:
- POST access_tokens is served only on the cluster management LIF
- ONTAP authorizes it only against a login defined on the cluster admin vserver
- A role created with
-vserver <data_svm>cannot authorize any cluster-scoped REST call regardless of which cmddirs are granted
Cause 2 — Commvault Array Management still uses the legacy SVM-local credentials:
- ONTAP audit log shows the connecting user as the SVM-local administrator (for example, vsadmin) instead of a dedicated cluster-level account
- Array Management credentials must be updated independently of Cause 1
Why previously working configurations begin failing after a SnapDiff v3 upgrade:
- SnapDiff v1 and v2 used ONTAPI (ZAPI) against the data SVM — no cluster-level authorization required
- SnapDiff v3 is REST-only and introduces the cluster-scoped access_tokens call
