Forum Discussion
OliverH1
May 19, 2020Copper Contributor
List all guest users (including Initiated By
Hi everyone! I'm looking for a simple way to list all guest users in my tenant. I would also like to include two more properties. Here is where I'm stuck and could need some help 🙂 The Acco...
VasilMichev
May 19, 2020MVP
That information (the initiated by data) is only accessible via the audit logs, which means you have to crawl the logs for every such events. And it also means its available only for a preset duration, meaning all the "old" guest users will not have any entries available. If you want to go that route, I'd suggest using the Graph API endpoints: https://docs.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0