Brenden,
Thanks so much for the quick reply. I have the simple code below as a POC and what happens is that the user is logged out as soon as the call to "UserInfoProvider.SetUserInfo(userInfoToChange);" is called.
UserInfo userInfoToChange = UserInfoProvider.GetUserInfo(userId)
userInfoToChange.UserName = "a@t.com";
UserInfoProvider.SetUserInfo(userInfoToChange);
UserInfo userInfo = UserInfoProvider.GetUserInfoForSitePrefix("a@t.com", CMSContext.CurrentSite);
CMSContext.AuthenticateUser(userInfo.UserName, false);
Is there some setting I need to set? What am I missing?
Thank you so much in advance!