For SharePoint Online, what PowerShell can generate a report of all users who can grant access to others on a site or library or a folder?

frob 4,216 Reputation points
2023-02-02T00:35:59.87+00:00

Hi there

For SharePoint Online, what PowerShell can generate a report of all users who can grant access to others on a site or library or folder? (Users may or may not be a Site Owner, they might have Full Control on just a folder or even just a file).

Thanks.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,855 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,153 questions
0 comments No comments
{count} votes

Accepted answer
  1. Haoyan Xue_MSFT 20,741 Reputation points Microsoft Vendor
    2023-02-02T06:50:12.6166667+00:00

    Hi @frob ,

    Only those with full control permissions can grant access to others. You can export the permissions of all users at each level into csv files, and filter users with full control permissions through the built-in filter of excel.

    1. Here is the powershell code to export the permissions of all users at each level: sitepermissionreport.txt
    2. Filter Full Control from permission column.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful