Skip to content

Instantly share code, notes, and snippets.

@maxcutlyp
maxcutlyp / sharepointaudit.py
Created November 26, 2024 08:58
SharePoint Permissions Audit
'''
# SharePoint permissions audit
Creates perms.csv, designed to be pivoted in Excel, containing all unique
(non-inherited) permissions on all SharePoint folders across all sites in
the tenant. Pivot on the URL field to get all users/groups with permission
to a given folder, or pivot on the User/Group field to get all the folders
a given user/group has permissions on.
You'll need to create an App Registration - follow this guide: