CE-311 Added isTempUser function to be able to determine whether we have to deal with TempUser