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

regarding sPAuditQuery.RestrictToUser()

$
0
0

Hi there,

I would like to use spaudit api to extract some documents behavior logs, if I use the sPAuditQuery.RestrictToUser() method, we need a User ID, such as sPAuditQuery.RestrictToUser(UserID). my question is how I should get user ID? currently, my method is ElevatedWeb.EnsureUser(spusername).ID --> Is it correct?? I use thePeople Picker 

Thanks


Hi there, if you found my comment very helpful then please | Propose as answer | . Thanks and Regards.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



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