Aug 25 2021 03:15 AM
Hello together
I need to get the the report from Azure AD User who have had their email privleges restricted due to spamming
The following link shows this in the Admin Center
https://protection.office.com/restrictedusers
Is there a way to do this from within PowerShell (as it's part of a reporting "Suite") to be able exporting it to CSV/Excel in an easier way?
Can this be achieved using the Graph API Module for PowerShell?
Thank you for your Help and best regards
Thomas
Aug 25 2021 04:44 AM
Solution@TechThomas Using the Exchange Online PowerShell module, you get access to the "Get-BlockedSenderAddress" cmdlet which will return this list and you can then export it as CSV. More information can be found here. I am not aware of a corresponding Graph API call though, but then again, I don't/can't know everything :)
Aug 25 2021 05:43 AM