NextCloud 12 Active Directory nested groups

Insert following query in editor:

 

Test it: