diff --git a/plugins/auth-backend/src/lib/resolvers/CatalogAuthResolverContext.ts b/plugins/auth-backend/src/lib/resolvers/CatalogAuthResolverContext.ts index 28bc066d10..1a1fdd7a36 100644 --- a/plugins/auth-backend/src/lib/resolvers/CatalogAuthResolverContext.ts +++ b/plugins/auth-backend/src/lib/resolvers/CatalogAuthResolverContext.ts @@ -42,7 +42,9 @@ import { CatalogIdentityClient } from '../catalog'; export function getDefaultOwnershipEntityRefs(entity: Entity) { const membershipRefs = entity.relations - ?.filter(r => r.type === RELATION_MEMBER_OF) + ?.filter( + r => r.type === RELATION_MEMBER_OF && r.targetRef.startsWith('group:'), + ) .map(r => r.targetRef) ?? []; return Array.from(new Set([stringifyEntityRef(entity), ...membershipRefs]));