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
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.
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.