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

Posted by Community Admin on 05-Aug-2018 20:52

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

All Replies

Posted by Community Admin on 10-May-2011 00:00

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

Posted by Community Admin on 12-May-2011 00:00

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 >>

Posted by Community Admin on 12-May-2011 00:00

@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

Posted by Community Admin on 12-May-2011 00:00

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 >>

This thread is closed