Handle groups and rights separately in the synchronization process