Neo4j – Identifikation der OU eines Accounts

MATCH (n:ADAccount) where not n.domain='local' and not n.grouptype='BuiltIn_Group' and not n.distinguishedname is null with n,split(n.distinguishedname,",ou") as dn RETURN distinct substring(n.distinguishedname, length(dn[0]+1)) as x, n.domain order by n.domain,x

 

Translate »