Skip to main content
Community site session details

Community site session details

Session Id : mQe7tyOuEWhbYM3fwUJT3F
Power Automate - Building Flows
Unanswered

Delegate permission to send mail in a flow

Like (0) ShareShare
ReportReport
Posted on 16 Feb 2024 21:50:29 by 4

Hi, I have a problem

I made a flow to send email notifications when an item is created in a sharepoint list, it was configured so that the email was sent by whoever created the item, the flow does not run and sends this message: "You are not authorized to send mail on behalf of the specified sending account".

Due to administrator restrictions in my company, I cannot delegate to whoever is going to create the item that the email can be sent from its sender. My question is whether within the flow, using some formula, it can be changed so that whoever creates the item can be the sender to the run the flow.

 

I thought about creating the flow from the profile of the user who creates the most items, but because there are more users who make requests within this list I want the flow to be already prepared so that it can do it automatically and not be configuring the flow for everyone. the users.

 

I attach a presentation of where I found the sender could be changed, but the system doesn't let me do it.

 

I don't know if it's in this forum, but I require a solution, I add screens, I would like to solve the problem using some formula within the flow

Capture.PNG

  • ivan_apps Profile Picture
    2,187 Moderator on 16 Feb 2024 at 22:13:48
    Re: Delegate permission to send mail in a flow

    In your powerpoint, i believe you are confusing the owner of the flow with the sender of the flow. If you simply add your flow to a 'Solution' you should be able to change the owner. But that won't fix your problem.

     

    The permissions really run from the Outlook connector that is associated with the flow. You can change who sends the email by simply sharing the flow as a co-owner to another user, having that user log in, and remove the existing outlook connector and adding their own. But this again won't solve your problem because then it's still not the user who created the item.

     

    Without the exchange admin granting you those rights, I'm afraid what you're asking is not possible. Any impersonation of you sending an email to make it look like another user is sending is called 'spoofing'. It will be flagged by most outlook default settings as a security warning or violation.

     

    What you can do is create a mailbox or dedicated service account user (your admins would do this for you) and then you could log in as that user and change out the Outlook connector to that user.  That way you have a dedicated 'sender' that is not you and not the user that created the record.  This is a common way to handle these system generated messages.

  • Pstork1 Profile Picture
    67,209 Most Valuable Professional on 16 Feb 2024 at 22:12:38
    Re: Delegate permission to send mail in a flow

    Automated flows run in the security context of the person who creates the flow. There is no way to send an email from a person who creates the item without giving the maker of the flow "Send on Behalf of" permission to the mailbox of all the people who can create items. There is no way to get around that requirement.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete