{"name":"data-entity-tenants-filtered","restApi":true,"configKey":"data-entity-tenants-filtered","payloadType":"POST_PROCESSING","config":[{"name":"datasource_key","type":"STRING","value":"data-entity-tenants"},{"name":"groovy_script","type":"STRING","value":"def result = []\ndata.each{tenant ->\n  if (tenant.user_ids.contains(parameters['user_id'])) {\n    result.add(tenant)\n  }\n}\nresult"}]}