How do I retrieve a user's email in SF 4.1? - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

How do I retrieve a user's email in SF 4.1?

  • How do I retrieve a user's email in SF 4.1?
  • Hello,

    I am trying to retrieve a user's email address in SF 4.1 and am having some problems.  I used the code below in SF 4.0 and it worked fine, but now I get a squiggly under the 'user.Email' with this Warning:

    'Public Overrides Property Email As String' is obsolete: 'This is now persisted as part of the user profile.'.

    Can someone tell me how to correct the issue?

    Dim userMan = UserManager.GetManager()
    Dim user = userMan.GetUser(SecurityManager.GetCurrentUserName)
    email.Text = user.Email

    Thanks,
    Jim

  • Hello Jim,

    The obsolete attribute will be removed for the next internal build. This is a bug - we forgot to remove the attribute when we implemented the new profiles with Sitefinity 4.1


    All the best,
    Ivan Dimitrov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
  • @Ivan

    I updated a support ticket (ticket #422924) regarding users and profiles.  Can you please take a look and help me out?  The code that I have that worked in 4.0 is not functioning any longer in 4.1

    Thanks,
    Jim
  • Hello Jim,

    I updated your request.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>