Forum Discussion
Pawel Jarosz
Mar 02, 2021Brass Contributor
Using MS Teams group in Exchange Online mail rule.
Hi Everyone, I would like to build a mailflow rule based on a group membership, however I would like this group to be MS Teams groups, so if a user is a member of X Team, rule will apply, however...
- Mar 02, 2021According to the documentation (https://docs.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/conditions-and-exceptions#recipients), M365 Groups should be supported for this condition, however the UI bits in the EAC do not expose them, so you will have to use PowerShell. Refer to the article above for the exact parameter you need (most likely -FromMemberOf).
VasilMichev
Mar 02, 2021MVP
According to the documentation (https://docs.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/conditions-and-exceptions#recipients), M365 Groups should be supported for this condition, however the UI bits in the EAC do not expose them, so you will have to use PowerShell. Refer to the article above for the exact parameter you need (most likely -FromMemberOf).
Pawel Jarosz
Mar 03, 2021Brass Contributor
Dear Vasil!! It worked out! If you ever in Poland (Wroclaw city) give me a shout we go for a beer! Few words of explanation why I am interested in this - wanted to give ability for people for have certain dislaimers added to their emails if they add themselves to the group.