Link to home
Start Free TrialLog in
Avatar of wahlster
wahlsterFlag for United States of America

asked on

SharePoint Silverlight Web Part - How do I obtain Windows Identity

I am developing a SharePoint Web Part using Silverlight which will be written in C#.  Web Part will be used in an Intranet environment.  I need to obtain the user's Windows Identity.  Is there a way that I can obtain it?
Thanks in advance for your help,
Terry
ASKER CERTIFIED SOLUTION
Avatar of dp_expert
dp_expert
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wahlster

ASKER

Thanks dp_expert,
Following the link thiis is what ended up working:

string userName = System.Security.Principal.WindowsIdentity.GetCurrent(ifImpersonating : false).Name;

Thanks again,
Terry