Multiple accounts on auth source

Have you considered using GROUP BY repeatedField in your aggregation SQL query?