Neo4j – Menge an Daten pro Account

Es werden pro AD Account die Mengen berechnet

 

MATCH (u:ADAccount)-[r:rel_fileowner]->(v) where n.adspath contains "OU=KBA_Accounts_Users_anonymous,
OU=EUR_Accounts_Users_anonymous,OU=anonymous,OU=Users,OU=Accounts,DC=corp,DC=knorr-bremse,DC=com"  RETURN 
u.cn,u.sAMAccountName,u.distinguishedname, sum(toint(r.size)) as menge_in_GB order by menge_in_GB desc limit 100