Solved

SharePoint Silverlight Web Part - How do I obtain Windows Identity

Posted on 2011-03-07
2
448 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:wahlster
2 Comments
 
LVL 15

Accepted Solution

by:
dp_expert earned 500 total points
ID: 35067132
0
 

Author Comment

by:wahlster
ID: 35068046
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
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now