set_usergroups method for users.