Add temporary group memberships.