Hi,
currently I'm experiencing a kind of weird problem where I'm out of answers and would be very happy if some of you experts could help me solve the problem.
Im trying to send a mail using a Flow. Sending the mail as the user which is defined in the connector to our on-prem exchange server
works flawlessly. The problem is that we need the address from which the mail will be sent to be another (explicitly a shared mailbox).
The user defined in the connector already has full access and send-as permissions set on the shared mailbox but as soon as I try to run the flow it stops with the following error message:
{
"status": 403,
"message": "You are not authorized to send mail on behalf of the specified sending account.\r\nclientRequestId: a62557fa-074b-4d2a-8e30-60d0b0982458\r\nserviceRequestId: d3a0ad64-ee39-228f-3dba-07a5c5abd875",
"error": {
"message": "You are not authorized to send mail on behalf of the specified sending account.",
"code": "ErrorSendAsDenied",
"originalMessage": "The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message."
},
"source": "office365-we.azconn-we-003.p.azurewebsites.net"
}
The question that comes to my mind is: Is it even possible to send in behalf of an shared mailbox? And if so, how do I do it?
The shared mailbox has no user in our active directory whilest the user defined in the connector has an active user which is also synced to the azure active directory.
Really strange. No idea, sorry.
Yes the account used in manual testing is the same that is referenced in the connector. I am just opening the OWA and when I'm writing the mail I can select the shared mailbox in the "From" Field.
And you are using in Office 365 connection the same account that you have used in Outlook test?
Sure. I just have to black out the mail and the adresses.
Here are two screenshots out of the editor.
And here is one of the error after running the flow:
I don't know if it is from any importance but: The user which is defined in the connector is being replicated to our azure ad (But! the mailbox which I'm connecting to is on-prem).
The shared mailbox itself is hosted on-prem only.
Could you show the flow action that generates the error, in edit mode?
Thank you for your reply Victorlvanidze!
I already added the shared mailbox to the users Outlook. If I try to send a mail via the alias manually it works. The problem is that as soon as i run the flow it stops working.
Any other ideas?
Just login to user's Outlook and check if you can send as a shared mailbox.
WarrenBelz
146,618
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,957
Most Valuable Professional