Welcome to Zuora Product Documentation

Explore our rich library of product information

Generate Microsoft Entra ID access token

Learn how to generate Microsoft Entra ID access token

Use the service principal credentials to request an Entra ID token:
# Replace values in <>. Token expires in ~1 hour.
curl -X POST "https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token" \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'client_id=<application-id>' \
  -d 'client_secret=<client-secret>' \
  -d 'grant_type=client_credentials' \
  -d 'scope=2ff814a6-3304-4ab8-85cb-cd0e6f879c1d%2F.default'

Replace:

The 2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default scope identifies Azure Databricks and is not workspace-specific. Do not change it. Refer to Microsoft Learn.

Token lifetime: Entra tokens are short-lived (~1 hour). Use immediately to create the PAT, or automate with CLI/SDK tools. Refer to Microsoft Learn.

Now continue to Create PAT for Entra ID SP via API.