Power Automate: Sending Emails As A Different User

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi my name is Devin knight from pragmatic works and in this video we're going to be tackling a pesky setting with inside of power automate around sending an email as a different user so you set up a power automate flow you use something like the Outlook connector and the send an email action and you want to not send it as you you want to send as someone else and to be able to do that there's some settings that you need to turn on and that's what we're going to be covering in this video look forward to sharing with you let's come back here just a moment and talk more about it foreign [Music] so I have two different flows that I've designed here to really show you two different types of settings they're both essentially doing the same thing they're sending an email if we take a peek at it if I go into my send as user flow and if I go ahead and edit this flow we'll see that I have an uh basic flow setup here with a manual trigger that's sending an email using the Outlook connector many of you have likely used this connector before and if I explore this connector you can see that I'm trying to send to my pragmatic Works email but I'm sending using a separate login here I'm using this separate connector or the separate law account called lab admin 23. keep that in mind because what I want to do is I actually want to send and create this flow using lab admin 23 but I wanted to appear as if the email came from someone else so you might have explored the advanced settings of this action before and as you go into the advanced settings you'll know that notice that there is this option that you can send an email as a different user so even though I'm logged in and designing my flow as lab admin 23 I actually want to send the email from Lab admin 24. now if you've tried this before you may have gotten an error and just to show you what that error might look like I'll go ahead and run my flow here now and I'm going to get an error telling me that I don't have permission to send from a different user you're seeing the error pop up above my head right now I'll take myself off camera for a moment here but you're seeing the the error message that you would typically see found right here that you're not authorized to send email on behalf of the specified sending account and so this has to do with mailbox delegation and whether or not you have access to send from that email and so what I'm going to walk you through is how to make those settings changes this is likely something that you would have to work with your Office 365 administrator to be able to do you likely will not have access to go to some of the areas that I'm telling you to go to so heads up on that in advance that you'll need to work with your administrative team on setting up this mailbox delegation so the first place that we need to go to get started is the Microsoft admin Center and so I'm going to bring my web browser over here where I've already signed in with an admin account this is someone that has admin permissions really Global admin permissions with inside of the tenant that I'm working with inside of and so with this account we have the ability to change mailbox delegation the way you can do that is you would go whenever you go to admin.microsoft.com you can then over on the left hand side click show all and this will show you the other admin centers that are available with inside of Microsoft including things like the teams Administration SharePoint Administration or in our case we want to do exchange Administration so I'm going to go ahead and navigate over to exchange Administration and I am actually looking at the new view of the exchange Administration site you may have a slightly different view if you're running it the older view you can change that though if you want but for what we want to do we're going to go over to mailboxes over on the left hand side so on the far left we'll go navigate to and find mailboxes so I'll do that here on my screen and then what I want to do is I want to set up delegation capabilities on the specific inboxes that we're trying to send emails from so if I go look back at my flow for a moment here let's go just alt tab back over to where we were I'll minimize this for a moment and I go back into edit mode I can see that the email inbox I'm trying to send from is lab admin 24. so if I were to switch the delegation capabilities on lab admin 24 to allow lab admin 23 to send emails from it I should no longer get that error message that we're receiving right now so let's give it a try we're going to go back over to uh here and we're going to go find my lab admin 24 account that would be found right here and when I select the lab admin 24 you'll notice there's a mailbox delegation capability or setting that you can select up top you can either click on this or you can actually click on the lab admin 24 account and then you'll see delegation over here on the right hand side as well it takes you to the same place it's the same exact thing regardless of which route you go to it but underneath the delegation settings there are a few different options that you can choose from and the two that we're going to really focus on are the send as and send on behalf options here and what we're going to do for our lab admin 24 is we're going to edit the send as to allow my lab admin 23 to send as this account okay so by doing this we can go into the edit section here add a member and we can type in and search for lab admin 23 that's the one that I'm designing the flows as and then hit save and then hit confirm now this can take a little bit of time it may not show results immediately in fact it gives you a little warning message right here saying that hey there may be up to about a five minute delay in doing this so don't be shocked if you don't see it work right away check back in a few moments if it does not work immediately but while we're here I also want to explore the other feature that we saw just a moment ago which was delegation on behalf of so if you wanted to make it so that a user can send on behalf of someone versus sending as them I'm going to show you the difference between those two as we work through here so I'm going to go ahead and close this because I have a secondary flow let me go flip back over to our flows here I have a secondary flow that I've created called send on behalf and this one is going to be using a different account to send as so if I go look at this one you'll see that I'm using a different account called lab admin 22 and this one I want to show you what happens if we use the send as on behalf of rather than the send as option so for lab admin 22 we're going to go ahead and go back over to where we were just a moment ago here we go so I'm going to go over to lab admin 22 this time set up mailbox delegation and this time I'm going to say send on behalf and we're going to send on behalf of lab admin 23. so again that's my account that I'm using to design my flows who will select add Member First this is the account that I'm using to design my flows and so if you had a service account or something like that that you were using as a connector for Outlook you could set up the mailbox delegation either on behalf of or send as in this mailbox delegation section here so I'll hit save on this and confirm so now I have set up delegation using the on behalf of and also the send as and so now I want to show you the difference between those two and how does that impact whenever your users actually send the flow and run the flow and what does it look like whenever someone receives in mail from those individuals as well all right so now that we've done the administrative side of things again everything in this admin section is going to be either your exchange admin this may be your Office 365 administrator just depends on how that's set up at your organization but this is likely something that you may not have access to do if you're simply designing flows this is a little bit of an elevated access that you might need all right so let's go back over to our flow that we were working on minimize this and let's actually go wow I got a lot open here let me go back over to the Flow Design that we had open here it is and I'm ready to test this out now that we've set up those two different settings with inside of the administrative Center we're going to go ahead and run the send as user flow again I'm hoping this time that we don't get an error hopefully I've given it enough time for it to do its magic behind the scenes but I'm going to go ahead and test this do a manual test and hit test to run this flow now if I haven't given given enough time I'm expecting I'm going to get an error still in fact it looks like I do get an error still so let me give it a few more moments I'll do a little magic of editing here and then we'll run it again once the settings have been applied correctly and I'll show you what the inbox finally looks like at the end so that way we know the proper flow is coming through being sent as the proper user so let's give it a few moments here magic of editing we'll be right back all right we've let the appropriate time go by in fact it took about 10 minutes before the flow finally would start running the proper way by the way I noticed that the sitting on behalf of someone that setting seemed to be able to process itself a lot faster than the send as I don't know if it's a normal thing or not but that's the way it happened to work in my example here but now that I've given it the appropriate amount of time for those settings to take place when I go to run my flow and I hit the test the flow hit test it will run my flow successfully and the output of it the result of it once we actually let the flow run you can see it ran successfully now again this flow is running as a different user even though I'm connected in and logged in as lab admin 23 when I go look at my inbox here's the email that I just sent myself it sent me an email from Lab admin 24. so again by going into the exchange admin settings which is something you likely don't have access to do you'll work with your admin team on that you're able to send as a different user now I also mentioned that there was another option called where you can send on behalf of someone else we turn that setting on as well and that would be the flow that we see right here the only difference is really the flow is identical I'm just sending as a different user this one's sending as on behalf of lab admin 22. so if I were to test this flow and run it we will receive an email that's slightly different the text is going to be in the body of the email is going to be the same but when we go to look at my inbox waiting for it to show up here now should take just a few moments the from its from who it came from will appear a little bit different so when that arrives in my inbox we will see a note that says here it is now that lab admin 23 on behalf of lab admin 22 sent this email so you have the option to choose which method you want do you want it to actually overtly say that it's sent on behalf of someone else or do you want it to appear as if you are actually sending it from a different email address you'll work with your exchange administrator and then the setting with inside of power automate that we saw was underneath the advanced section so you'll need to expand the advanced section to be able to find the send from settings right here so that's it for this video it's a very common roadblock that I've seen many people have so now you know how to change who your email is being sent from hope you enjoyed this one thank you so much and we look forward to sharing more information with you in our next video Don't Forget by the way to make sure to like And subscribe this video to find other great content that we've made available to you as well all for free thanks so much take care [Music] [Applause] [Music]
Info
Channel: Pragmatic Works
Views: 34,660
Rating: undefined out of 5
Keywords: power automate, flow, send email, send email with options, ms flow, power platform, flow connector, power automate action, send email with option in power automate, microsoft365, office365, Change the From in Emails, power automate tutorial, microsoft flow, microsoft power automate, Outlook Send an email action, Power Automate Mail action, Pragmatic Works, Devin Knight
Id: DQl3Dp-UDgo
Channel Id: undefined
Length: 11min 41sec (701 seconds)
Published: Tue Jan 03 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.