KQ070 — on-behalf-of rests on a scope
Error · on-behalf-of-rests-on-scope · Workload identity
A call on behalf of a user rests on a delegated scope granted on the API it calls.
A call auth on-behalf-of holds only app roles on the API it calls. On behalf of a user, the API checks a delegated scope: declare one in its server workload identity and grant it, grant read on the call.
Examples
In a bank where the accounts API declares the app role read and the scope act, an on-behalf-of call granted only read raises KQ070:
platform banking {
payments -> accounts/accounts-api over http auth on-behalf-of via iam/entra grant read
}
Granted the scope act, it raises nothing:
platform banking {
payments -> accounts/accounts-api over http auth on-behalf-of via iam/entra grant act
}
© 2026 Extenza Works. All rights reserved.