TinyAddicts #1 – List all guests in your tenant

TinyAddicts is a series of ultra-short, ultra-useful scripts and snippets. No fluff – just pure, working code. Perfect for admins, devs, and anyone who values their time.

Scenario

You want to check who invited external users into your Microsoft 365 tenant – and when. Here’s how to list all guest accounts with key info like creation date and account status.


Code


Sample Output


Notes

  • Requires User.Read.All permission.
  • -Property is essential — otherwise CreatedDateTime and AccountEnabled won’t show up.
  • Great for security reviews and cleanup of old guest accounts.
  • Export to CSV? Just add:

More bite-sized scripts in the TinyAddicts series – simple tools, serious impact.

Leave a Comment

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

Scroll to Top