Forum Discussion
pranjal sharma
Aug 30, 2018Copper Contributor
Delete mail message as Admin from user mail box
Hi All, I am new to O365. I am creating a phishing mail detection solution for O365. At final stage I want to purge the mail using admin credentials through java API. Can you please redirec...
VasilMichev
Aug 31, 2018MVP
Use the Search-Mailbox cmdlet: https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/search-mailbox?view=exchange-ps
or content searches: https://docs.microsoft.com/en-us/office365/securitycompliance/search-for-and-delete-messages-in-your-organization
pranjal sharma
Sep 03, 2018Copper Contributor
Thanks Vasil,
Currently I am using cmdlet Search-mailbox but I want to use APIs to do similar work.
Pranjal
Currently I am using cmdlet Search-mailbox but I want to use APIs to do similar work.
Pranjal
- Sep 03, 2018
Have you tried Exchange Web Services (EWS)?
- pranjal sharmaSep 05, 2018Copper Contributor
I tried EWS but I am able to connect to one mailbox at a time only
Nestori Syynimaa wrote:Have you tried Exchange Web Services (EWS)?
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/get-started-with-ews-client-applications
Nestori Syynimaa wrote:Have you tried Exchange Web Services (EWS)?
https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/get-started-with-ews-client-applications