Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

User name on the Portal

  Asked By: Mohammad    Date: Mar 19    Category: Sharepoint    Views: 588

Can any one tell me how do i get the name of the person who has logged in to the
site.I am using integrated windows authentication.

Hope i would get the solution to my problem

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Elizabeth Anderson     Answered On: Mar 19

If you are in asp.net code, you can do something like:

string user  = this.Context.User.Identity.Name;

To get the name from the page's HttpContext.

 
Answer #2    Answered By: Jerome Montgomery     Answered On: Mar 19

U can get using Request Server Variables also.

Request.ServerVariables["LOGON_USER"];

Or
System.Security.Principal.WindowsIdentity.GetCurrent().Name;

 
Didn't find what you were looking for? Find more on User name on the Portal Or get search suggestion and latest updates.




Tagged: