Solved

SharePoint Silverlight Web Part - How do I obtain Windows Identity

Posted on 2011-03-07
2
451 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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