add function for usergroup and user