Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Required JWT authorization for filters_by_party of active contracts?Forum ↗

Required JWT authorization for filters_by_party of active contracts?

App Development2 posts23 viewsLast activity Jan 2026
WA
WallaceKellyOP
Jan 2026

For this situation…

  • admin is stakeholder on all contracts
  • clientA is stakeholder on some contracts

… if I call the gRPC GetActiveContracts method (or the state/active-contracts JSON endpoint) with the following…

  • A JWT authorizing canReadAs(admin)
  • A filters_by_party for clientA

Question: Will the query result include the contracts on which clientA is a stakeholder, since admin has “visibility” to all the contracts?

WA
WallaceKelly
Jan 2026

No, that call will fail with an auth error.

To filter for clientA contracts, the caller must have authorization to canReadAs(clientA) (which is also implied by canActAs(clientA) and canReadAsAnyParty).

See here:

← Back to Discussions