May 19 2020 03:59 AM - edited May 19 2020 04:00 AM
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 :)
This is what I came up with for listing the guest users. What would be an easy way to include to above properties?
Get-AzureADUser |where {$_.UserType -eq 'Guest'} |Select DisplayName, AccountEnabled, mail, CreationType, UserState |FT
In the Azure AAD portal under Audit Logs we are able to view a part of this info (the field is called Initiated By)...however there is no way to add the Department-property in that UI report. Powershell to the rescue then? :)
Thanks!
Feb 11 2022 05:58 AM