Find users holding a right (e.g. who can pay) — cross-organization
wflow_find_users_with_rightFind users holding specific rights across organizations, defaulting to payment permissions. Pass custom rights to identify users with other permissions, including full-access users.
Instructions
Sweep organizations and return every user who holds a given right, or full-access users (who implicitly have all rights). Defaults to payment rights (CanMarkForPayment, CanManagePayments), directly answering 'which users can pay across organizations?'. Pass rights to check other rights (e.g. CanExport, CanApprove, CanManageSettings).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rights | No | Rights to look for. Default: CanMarkForPayment, CanManagePayments. | |
| organization | No | Single org slug. Defaults to WFLOW_ORG. | |
| organizations | No | Explicit list of org slugs (cross-organization). | |
| allOrganizations | No | Operate over ALL accessible organizations. | |
| includeFullAccess | No | Treat full-access users as holding every right. |