We run an O365 environment with AD (replicated with on prem AD). I can get approval flows to send emails to O365 email addresses for users, but not to security groups. For instance, I can send an approval to my own email address but I cannot send an approval to a security group with an attached email _databaseadmins. However, using Outlook and Outlook online, I can send email to that security group without issues. Also, SQL Server database mail has no problems sending it. Our system admin has double checked to make sure they are provisioned in the O365 AD (and I will ask him to check again, just in case).
Here is the error message in the approval flow:
The request failed. Error code: 'GraphUserDetailByEmailNotFound'. Error Message: 'Found no matching users for '<email address>'.'.
Has anyone else encountered this error? Is there a trick to setting up the security group that will allow Flow to interact with it?
That's a bit of a bummer. I really do appreciate the information, so thank you. I will vote and comment on that idea.
In the meantime, as a workaround, do you know if there are any kinds of email groups that are allowed by Flow? Will plain distro groups work? I would hate to hard code individual user email addresses ... that violates all kinds of best practices for developers.
Hi KAW,
I am afraid that currently it might be not possible to send emails to security groups.
There is a similar request at Flow ideas Forum, please vote and comment the idea at here:
https://powerusers.microsoft.com/t5/Flow-Ideas/Allow-seleciton-of-SharePoint-security-groups-for-email-send-to/idi-p/34854
I will help collect and report it on my side.
Best regards,
Mabel Mao
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional