Reputation: 11
I've been looking around for some documentation on how (if) I can interact with the Exchange Admin Center in our Office 365 tenant.
Specifically, I'm just looking to get a list of users from Exchange Admin Center > Protection > Action Center (users currently blocked from sending due to spam) via C#
Also remove an email address from that same list as well.
I've seen various sites, including microsoft's, that mention a REST API for a variety of purposes with Office 365 - but nothing that I'm quite looking for.
I can see Fiddler, for example, using outlook.office365.com/ecp/DDI.... as I'm manually interacting with the Exchange Admin Center > Protection > Action Center
Am I just missing where this information is?
Upvotes: 0
Views: 2311
Reputation: 33124
There are a number of API's available for Exchange, but the public of them are for interfacing as a client. For managing the Exchange Server itself, your best bet would be the Exchange Management Shell. This is a PowerShell tool set for Exchange. You can call into these from C#, see Executing PowerShell scripts from C# for details.
Upvotes: 1