Stuck on implementing a custom analytics dashboard that aggregates interaction recordings across multiple client organizations. We are building a Premium App on AppFoundry that requires pulling screen recording metadata and playback URLs for quality assurance purposes. The app uses a multi-tenant OAuth strategy where the user authenticates against a specific organization, but the backend service needs to fetch assets from that org’s screen recording library.
The issue arises when calling the GET /api/v2/interactions/screenrecordings/{screenRecordingId} endpoint. While the initial authentication succeeds and we receive a valid access token scoped to screenrecordings:read, the request consistently fails with a 403 Forbidden error when attempting to access recordings from a different org than the one the token was issued for, even though the app has the necessary permissions granted in the AppFoundry console.
{ "code": "forbidden", "message": "Access denied. The requested resource is not available in the current organization context.", "status": 403 }
We have verified that the screenrecordings:read scope is present in the token payload. Is there a specific claim or header required to bypass the org boundary for screen recordings, or is this strictly enforced at the API gateway level regardless of app permissions? We are using the standard Genesys Cloud REST client version 2.1.0.