Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Where does SPUser.ID comes from

$
0
0

Dear All

I have a user set up in active directory. This user is rwolf (CN=rwolf,OU=acme,DC=bfs-cust-tst,DC=local). Assume I run the code below in  'protected void Page_Load(object sender, EventArgs e)'.

SPSite oSite = SPContext.Current.Site;
SPWeb oWebsite = oSite.OpenWeb();
SPUser user = oWebsite.CurrentUser;
myLabel.Text = user.ID.ToString();
When rwolf logs into Sharepoint and navigates to the page where above code behind runs he will see as value in 'myLabel' '18'. So, ID of rwolf is 18. Now, I could not figure out where this ID comes from. I looked deeply into Active Directory but could not find anything. Any hints?

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>