mail forwarding field

Admin [ADMINISTRATEUR] 1 Reputation point
2022-08-22T07:54:32.443+00:00

hello, I would like to be able to redirect the emails of some of my users to other personal email addresses via the "mail forwarding" function. Do you know which field to use on the API side to do this.
In fact, a professional address will have to redirect to a personal address and this on a case-by-case basis via API.
thank you

233436-redirection.png

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 123.6K Reputation points MVP Volunteer Moderator
    2022-08-22T08:13:45+00:00

    There's no API for that operation currently, but you can use PowerShell:

    Set-Mailbox ******@domain.com -ForwardingSmtpAddress ******@anotherdomain.com -DeliverToMailboxAndForward $true  
    

    If you need help connecting to Exchange Online PowerShell, follow the instructions here: https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps

    0 comments No comments

Your answer

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