Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Error using send-as to send a mail as an on-prem mailbox

(0) ShareShare
ReportReport
Posted on by 6

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.

 

 

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Error using send-as to send a mail as an on-prem mailbox

    Really strange. No idea, sorry.

  • FinnHandrick Profile Picture
    6 on at
    Re: Error using send-as to send a mail as an on-prem mailbox

    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.

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Error using send-as to send a mail as an on-prem mailbox

    And you are using in Office 365 connection the same account that you have used in Outlook test?

  • FinnHandrick Profile Picture
    6 on at
    Re: Error using send-as to send a mail as an on-prem mailbox

    Sure. I just have to black out the mail and the adresses.

     

    Here are two screenshots out of the editor.

    FinnHandrick_0-1711030755095.pngFinnHandrick_1-1711031019640.png

     

    And here is one of the error after running the flow:

     

    FinnHandrick_2-1711031185658.png

     

    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.

     

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Error using send-as to send a mail as an on-prem mailbox

    Could you show the flow action that generates the error, in edit mode?

  • FinnHandrick Profile Picture
    6 on at
    Re: Error using send-as to send a mail as an on-prem mailbox

    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?

  • VictorIvanidze Profile Picture
    12,207 on at
    Re: Error using send-as to send a mail as an on-prem mailbox

    Just login to user's Outlook and check if you can send as a shared mailbox.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,957 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow