How to identify users which are directly added to SharePoint site (not through any SharePoint Group ) without traversing whole site users using C# or powershell ?


Without traversing manually to a website, you can get all users in Sharepoint on Premise by using following command:

Get-SPUser -Web "http://your_site_url"

you can check for other optional parameters in MSDN

  • We don't want to take all users and then check their permission, we want to check users in a particular permission level. Any leads on this. – Rohit Kharade Jun 23 '17 at 6:00

You need to create a separate account and configure it in the application pool identity. You can get the original user name.Please checkout Identify users and analyze document usage in SharePoint 2013 and how to get current user name (AD) in SharePoint programmatically? for detailed information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.