Required JWT authorization for filters_by_party of active contracts?
- WallaceKellyOP
For this situation…
adminis stakeholder on all contractsclientAis stakeholder on some contracts
… if I call the gRPC
GetActiveContractsmethod (or thestate/active-contractsJSON endpoint) with the following…- A JWT authorizing
canReadAs(admin) - A
filters_by_partyforclientA
Question: Will the query result include the contracts on which
clientAis a stakeholder, sinceadminhas “visibility” to all the contracts? - WallaceKelly
No, that call will fail with an auth error.
To filter for
clientAcontracts, the caller must have authorization tocanReadAs(clientA)(which is also implied bycanActAs(clientA)andcanReadAsAnyParty).See here:
