Is there an API to set mail flow rule in Exchange admin center

Jeremy Khoo 20 Reputation points
2024-09-16T02:16:15.1+00:00

I want to do this. but maybe using something like graph API. However, in graph api creation rule is user based. I want to create a rule for the organization like you do in the exchange admin center

https://learn.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/mail-flow-rules

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Hitesh Pachipulusu - MSFT 3,620 Reputation points Microsoft External Staff
    2024-09-16T06:18:52.62+00:00

    Hello Jeremy Khoo,

    Thank you for reaching Microsoft Support!

    Currently, the Microsoft Graph API does not support creating organization-wide mail flow rules directly. The Graph API is primarily designed for user-centric operations, such as managing individual mailbox rules. Please check documentation.

    For organization-wide mail flow rules, you would typically use the Exchange admin center (EAC) or PowerShell. The EAC allows you to create, manage, and apply rules that affect all users in your organization.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.