Forum Discussion
Inactive Guest users in Azure Active Directory Organizational relationships
- May 15, 2020
I have a sample script here: https://github.com/michevnew/PowerShell/blob/master/Graph_Last_Login_Date.ps1
https://github.com/michevnew/PowerShell/blob/master/Graph_Last_Login_Date.md
But it still requires you to fiddle with it a bit if you only want the Guest users data, and setting it up might also be challenging if you haven't done such things before. Your only other option is to get the Sign-in logs from the Azure AD blade, then filter them out in a external tool.
I have a sample script here: https://github.com/michevnew/PowerShell/blob/master/Graph_Last_Login_Date.ps1
https://github.com/michevnew/PowerShell/blob/master/Graph_Last_Login_Date.md
But it still requires you to fiddle with it a bit if you only want the Guest users data, and setting it up might also be challenging if you haven't done such things before. Your only other option is to get the Sign-in logs from the Azure AD blade, then filter them out in a external tool.
Is that basically the same approach you would give PowerBI rights to do the same type of User queries?
As I read things there is no Powershell cmdlet, at least in the MS supplied module, for this type of query.
- Chad RodriguezMay 15, 2020Copper Contributor
would be nice, thanks for checking as I wasn't finding anything either.