update user's groupIds when creating group