Forum Discussion
Thomas555
Sep 01, 2022Copper Contributor
Get User Submissions via Powershell to Mark them
Hello all, currently I try to find out how to load all User submissions in powershell and use the "Mark as and notify" feature on it. Attached you find a screenshot what I eactly mean: ...
VasilMichev
Sep 01, 2022MVP
Have you looked at the Graph API's /security/threatSubmission/ endpoint? https://docs.microsoft.com/en-us/graph/api/resources/security-threatsubmission?view=graph-rest-beta
- Thomas555Sep 02, 2022Copper ContributorThank you for the reply. UnfortunatelyIam not trained and never used Microsoft Graph so a Powershell command would be better. If I look at your link I dont understand anything. So i guess there no powershell command out there, right ? A yes would also answer this question
- VasilMichevSep 02, 2022MVPThe Get-MgSecurityThreatSubmissionEmailThreat cmdlet from the "Security" module of the Microsoft Graph SDK for PowerShell should do. Unfortunately, said module is poorly documented, to the point that it's easier to use the API directly. Here's the corresponding "help" article, just in case: https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.security/get-mgsecuritythreatsubmissionemailthreat
- Thomas555Sep 06, 2022Copper Contributor
VasilMichev thank you so far for the help.
Iam completly new with Microsoft Graph. Iam not sure how to get the security module.
I installed the Microsoft Graph SDK for Powershell.
Used both commands to connect to Graph (and beta to get the commands)
Select-MgProfile -Name "beta"
Connect-MgGraphBut Powershell still doesent know the cmdlet for Get-MgSecurityThreatSubmissionEmailThreat
What do I need to do to import all the "MGSecurity" commands ?
Thank you very much