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,261 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.

Microsoft 365 and Office SharePoint For business Windows
Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.