Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Get UserInformation with IUser from database?

Vote:
 

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:
 

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

#77981
Nov 29, 2013 13:53
Vote:
 

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.