Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. Passionate about sharing the deep technical knowledge and experience to help others, through the real-world articles!

6 thoughts on “SharePoint Online: Find All External Users using PowerShell

  • I have tested “Generate External Users Report for All Site collections in the tenant using PnP PowerShell” but the result also grab external users that were previous added to the site. I think its getting the users ID from user info list. Which causes a false report. Is there away not to grab it from the user info list and only the current external users that actually have access to the site?

    Reply
  • Hello Salaudeen, thank you so much for your dedicated continual shares.

    I have been trying to retrieve “Find All Guest Users whose Access is going to Expire in SPO site” via powershell. How can I do that? Since microsoft has left no way for the admin to set expiration links less than 30 days, monitoring and deleting access seems to be the only way. With 100’s of shared files, monitoring one by one is time conaumimg and tedious, is there a way we can retrieve a d list via powershell and set a command to delete access for users if expiry is X days?

    Reply
  • These do not show emails have have been sent a link. I shared a document with an external email via the Share Link option, and none of these scripts returned the email in their results

    Reply
  • Great scripts! What about MS Teams private channel SPO sites? Do the external users there get captured?

    Reply
    • User objects are scoped at the site collection level (In other words, when you add a new user, SharePoint creates an entry in “User Information list” of the site collection).

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *