I’m trying to programmatically list all OAuth clients in our Genesys Cloud org and check their assigned scopes using the Kotlin SDK (genesys-cloud-kotlin v2.18.0). The standard OAuthApi.getOAuthClients() call returns a list of OAuthClient objects, but the response payload seems truncated. I need to see the actual scopes array for each client to verify if specific permissions like admin:oauth or user:read are attached, but the SDK model only exposes basic fields like id, name, and clientId. Is there a separate endpoint I need to hit for each client to get the full scope configuration?
I’ve tried iterating through the results and calling getOAuthClient(clientId) for each entry, hoping the detailed view includes the scopes, but it returns the same limited data. The JSON response from the API looks like this: { "id": "abc-123", "name": "Test Client", "clientId": "xyz" }. No scopes field. I’m stuck because I need to audit these assignments in our CI pipeline. What’s the correct way to fetch the scope list for each client in Kotlin?