Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Get UserInformation with IUser from database?

Vote:
0

As the subject says: I want to retrieve information from my user using IUser.

Is there any way to get this information without using "Select 'user' from database?

#77975
Nov 29, 2013 13:10
Vote:
0

You mean get the currently logged in user? Thread.CurrentPrincipal

#77981
Nov 29, 2013 13:53
Vote:
0

Yes, well I wanted to get infomation from a User like: Email,Name etc.. But I fixed it by using the : 

var currentUser = CommunitySystem.CurrentContext.DefaultSecurity.CurrentUser;

Cheers!

#77982
Nov 29, 2013 13:54
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.