Jun 28 2019
05:27 AM
- last edited on
Feb 07 2023
08:00 PM
by
TechCommunityAP
Jun 28 2019
05:27 AM
- last edited on
Feb 07 2023
08:00 PM
by
TechCommunityAP
Hello,
I would like to create something like distribution list of all people working in company. But i want to create this by using existing separate distribution lists which consist of Employees, Contractors, Bosses.
Tree hierarchy :
ALL = Employees + Contractors + Bosses
I am looking for an option how to do this when i do not want to some people from for example distribution list Employees in my general Distribution list ALL.
Is there any option to create something like Black list or MINUS ?
I have to use tree hierarchy (upper in text).
THANKS
Jun 28 2019 11:32 AM
The only way to use "exclude" type of criteria is via Dynamic Distribution groups, where you can adjust the recipient filter accordingly. I wouldn't recommend it though, unless you have a very strict criteria to filter out all those users. Otherwise the filter will quickly become unmanageable.
Jul 01 2019 04:23 AM
Thanks,
but I can't find supported property for custom rule. I don't know how to write a condition for membership of existing groups. Only user's or device's supported properties are there :
https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-dynamic-membership
I need something like : user.groupsMembership -eq "employees"
And I'm not sure that it's possible :(
Any hints please ?
Jul 01 2019 09:57 AM
You are looking at the documentation for Dynamic membership for O365 groups, this does not apply to Distribution groups. Instead, you need a Dynamic Distribution group. Here are the properties supported for filtering: https://docs.microsoft.com/en-us/powershell/exchange/exchange-server/recipient-filters/recipientfilt...
You can use the Members one to filter out members of another group, but as I mentioned above, this can quickly become messy when you add more conditions.