I am using UserController.GetUserByUserName(), and whether I pass True or False to isHydrated, the results remain the same. When I analyzed core SqlDataProvider, I found that after setting isHydrated to False, the Membership Property of UserInfo should not have been hydrated.
Is that true?? If yes, then why is still Membership being filled even after setting isHydrated to False?
Secondly, I want to find out, whether a User exists across any Portal. I sent the username to this function (UserController.GetUserByUserName) & set the PortalId to -1. I indeed got a UserInfo object even if that user is not registered with the current portal. Is that the intended behavious of this function, or a side-effect of some other mistake I am making in the process???