query1: Filtering Active Users Across Multiple Sources
There are two sources, Source A and Source B, and a user named ‘X’. X is active in Source A but inactive in Source B. When fetching results, I want to exclude inactive accounts, meaning I only want X’s name to appear for the source where he is active (Source A) and not for the inactive source (Source B).
Additionally, there might be a scenario where another user, ‘Y’, is only present in one source and is inactive in that source. In such cases, I do not want Y’s name to appear at all.
In summary, I only want to retrieve active users and exclude inactive users from both sources.
second query: Is it possible to combine more than five platforms and retrieve only the identities with active accounts?
Below is the query I am using for Five platforms.
@accounts (source.name:‘A’ OR source.name:‘B’ OR source.name:‘C’ OR source.name:‘D’ OR source.name:‘E’) AND (attributes.cloudLifecycleState:active OR attributes.cloudLifecycleState:loa) AND (attributes.C:Y OR attributes.AActive:Y OR attributes.DActive:Y OR attributes.B:2 OR attributes.B:0)
Please help me out for the above queries