implemented function GetUserProfiles and GetUsers