Deleting user via /api/v2/users/{id} returns 403 despite admin scope

Trying to automate user cleanup in Kotlin using the Genesys Cloud SDK. The goal is to remove terminated agents via DELETE /api/v2/users/{userId}. I’ve granted the user:delete scope to the integration user and confirmed the token is valid. Still getting a 403 Forbidden response.

The error payload looks like this:

{"errors":[{"code":"FORBIDDEN","message":"User does not have required permissions"}]}

I checked the platform admin UI and the integration user has the “Administrator” role. Also tried adding user:delete explicitly to the custom role, but no change. The user being deleted is inactive and has no active interactions, so soft-delete limits shouldn’t apply here.

Is there a specific permission or role attribute I’m missing for the API call? Or does the SDK handle auth differently than the UI? I’m using genesyscloud.platformclientv2.UsersApi().deleteUser(userId, null, null, null) in the code. Any insights would be helpful.