I have a simple flow.
To summarise when a user creates an item on a sharepoint list an email is sent to someone using a standard admin account made just for flows.
I want it so when the email is sent from the admin account, it is sent on behalf of WHOEVER created the request on the SharePoint site.
I tried putting 'Created by email' as the send from option But I got the error saying I do not have permission to send on behalf.
Is there a way to send on behalf of whoever creates the item? We may have hundreds of people create the item so that is why it may cause problems. Please see pics below
Solved! Go to Solution.
So the send on behalf only really works if you have a few email accounts you want to send from, and get access to their emails.
But for this scenario where 100 different people could create an item on the Sharepoint list, it does not make sense to try and obtain send from access to all 100+ people? So best bet is to just keep the service account I guess.
Thanks for the quick response.
From a security and audit trail point of view this is absolutely right. Yes you could use a service account (need to have an Inbox) and capture the created by user details in the email body.
Just out of curiosity, do you know if a service account could easily obtain access to send on behalf of everyone? i.e. is there some settings we can tick to give it access or is it very long to get send access for over 1000 users?
Recently I did used in a project where we created a email@example.com address where it send out the email to people. Make sure this is another email account whether its service account or not which should have an email address / inbox associated with it. When flow runs it will use the credentials of newly created email.
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.