I’m trying to figure out why the reporting API endpoint /api/v2/analytics/users/summary returns a 401 Unauthorized response when called from our ServiceNow scheduled script execution. The OAuth token is generated using the same client credentials that successfully authenticate against the standard REST APIs for ticket creation, yet the analytics scope seems to reject it immediately. Verified the token contains the analytics:reports:execute scope.
Appreciate any insights on scope requirements for this endpoint.