From 0bf36f74db1f2b304c57c0bee104cc9126026220 Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Tue, 30 Jun 2026 10:48:49 +0200 Subject: [PATCH] Fix n8n Organization Get Many failing on pending invitations The Organization "Get Many" operation listed all viewer profiles without filtering by state, then selected each profile's nested organization field. Inactive profiles (e.g. unaccepted invitations) have no active membership, so the per-org iam:organization:get authorization check failed and the whole operation errored. Filter profiles to ACTIVE state, matching the `prb org list` CLI behavior, so only organizations the identity is an active member of are fetched. Signed-off-by: Sacha Al Himdani --- .../nodes/Probo/actions/organization/getAll.operation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/n8n-node/nodes/Probo/actions/organization/getAll.operation.ts b/packages/n8n-node/nodes/Probo/actions/organization/getAll.operation.ts index be3b81a69..4201ca56f 100644 --- a/packages/n8n-node/nodes/Probo/actions/organization/getAll.operation.ts +++ b/packages/n8n-node/nodes/Probo/actions/organization/getAll.operation.ts @@ -56,9 +56,9 @@ export async function execute( const limit = this.getNodeParameter('limit', itemIndex, 50) as number; const query = ` - query GetOrganizations($first: Int, $after: CursorKey) { + query GetOrganizations($first: Int, $after: CursorKey, $filter: ProfileFilter) { viewer { - profiles(first: $first, after: $after) { + profiles(first: $first, after: $after, filter: $filter) { edges { node { organization { @@ -95,7 +95,7 @@ export async function execute( const memberships = await proboConnectApiRequestAllItems.call( this, query, - {}, + { filter: { state: 'ACTIVE' } }, (response: IDataObject) => { const data = response?.data as IDataObject | undefined; const viewer = data?.viewer as IDataObject | undefined;