How to disable the email forwarding using MS Graph API's?

Sandesh Santram Giram 0 Reputation points
2023-06-02T08:04:17.7+00:00

We are utilizing Graph API's for sending messages within our application. Before sending the request, we encode the MIME object.

We would like to inquire if there is a feature available in Graph API that allows us to disable email forwarding for recipients.

Additionally, we are interested in incorporating Information Rights Management (IRM) with Graph API. We came across a post on Stack Overflow (https://stackoverflow.com/questions/74795197/disable-mail-forward-through-java) that mentions a possible solution. Can you confirm if the suggested approach will work?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,676 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 95,671 Reputation points MVP
    2023-06-02T16:18:32.1333333+00:00

    Depends on the type of forwarding configured. Generally speaking, the Graph API does not cover any Exchange admin operations, so the "standard" forwarding configuration cannot be changed. If the user has configured forwarding via a rule though, you can manage this.

    Still, to cover and manage all the possible methods, the only programmatic solution is via the Exchange Online PowerShell module.