Answered by:
Powershell to find all sharepoint sites a user DOES NOT HAVE ACCESS to

Question
-
Hi,
Just wondering if you can help out with this one:
I’m wanting to find all sites and subsites in a site collection that a user does not have access to. I’m sure it’s a simple PowerShell script however I can’t find anything online. If someone can help that would be great!
Thanks,
Clare
Sunday, February 11, 2018 10:38 PM
Answers
-
You can try Acess Checker tool which helps to quickly check what objects within a Sharepoint site hierarchy a user has access to.
Here is another informative blog to gather more information - https://mikesnotebook.wordpress.com/2009/06/26/create-a-directory-of-sharepoint-sites-that-a-user-has-access-to/
Carlo
- Proposed as answer by Justin Liu_FoxDaveMVP Monday, February 12, 2018 6:09 AM
- Marked as answer by Walshey Tuesday, February 13, 2018 12:21 AM
Monday, February 12, 2018 5:36 AM -
Hi Walshey- not sure of a way to do that. Maybe check for user in site permissions and have it return null. I think you're better off getting all sites the user has access to and compare that to a list of all sites.
cameron rautmann
- Marked as answer by Walshey Tuesday, February 13, 2018 12:21 AM
Monday, February 12, 2018 3:16 PM
All replies
-
You can try Acess Checker tool which helps to quickly check what objects within a Sharepoint site hierarchy a user has access to.
Here is another informative blog to gather more information - https://mikesnotebook.wordpress.com/2009/06/26/create-a-directory-of-sharepoint-sites-that-a-user-has-access-to/
Carlo
- Proposed as answer by Justin Liu_FoxDaveMVP Monday, February 12, 2018 6:09 AM
- Marked as answer by Walshey Tuesday, February 13, 2018 12:21 AM
Monday, February 12, 2018 5:36 AM -
Hi Walshey,
If the reply is helpful to you, you could mark the reply as answer. Thanks for your understanding.
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.Monday, February 12, 2018 8:20 AM -
Hi Walshey- not sure of a way to do that. Maybe check for user in site permissions and have it return null. I think you're better off getting all sites the user has access to and compare that to a list of all sites.
cameron rautmann
- Marked as answer by Walshey Tuesday, February 13, 2018 12:21 AM
Monday, February 12, 2018 3:16 PM