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

Getting the SID from the current user

$
0
0

Hi,

I've a general question retrieving the SID of the current user.

When fetch the SID with this following code I getting an empty value:

SPContext.Current.Web.CurrentUser.Sid

Alternatively I get successfully the SID with the second code snippet:

SPContext.Current.Web.CurrentUser.UserId.NameId

Why is the direct SID value empty?

Any help appreciated.

 


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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