set associations for docs <=> groups