0

I have been googling for sometime now and have found various APIs but none which cover what I am trying to achieve.

This link is what I am trying to achieve however, via an API call. Does anyone know if this is possible?

LearningCode
  • 109
  • 1
  • 6
  • 3.5 years later and I have this problem. I have a client that wants to edit the spam filter lists. I had a look with Microsoft APIs but nothing that points to spam filtering. I have a ps script at hand, not tested - https://community.spiceworks.com/scripts/show/4424-o365-add-sender-or-domain-to-spam-allow-list Has this been resolved? – Byron Jehoma Feb 08 '22 at 13:12

1 Answers1

0

If you are talking about setting the allow / block settings in the Exchange Control Panel it is possible through Powershell.

The configure spamfilter doc page has a part about the Powershell Commandlets

The Set-HostedContentFilterPolicy will allow you to edit the list in ECP.

  • thanks, ill look into it. Its rather vague as it says Exchange 2013 but is under the 365 banner. I'll try work out what permissions are required and test it. – LearningCode Jul 26 '18 at 08:11