Sync Service & Dynamic AAD Group

Has anyone had any success in using the ARS Sync Service to create dynamic groups? 

As an example - list of departments from a HR system coming in; Sync Service to create dynamic groups querying department field in AAD based on those values

EG: 1:1 mapping, so if there are 300 depts in HR output, 300 dynamic groups created


Cheers