Home

Managing users from Distribution lists

%3CLINGO-SUB%20id%3D%22lingo-sub-727885%22%20slang%3D%22en-US%22%3EManaging%20users%20from%20Distribution%20lists%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-727885%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20would%20like%20to%20create%20something%20like%20distribution%20list%20of%20all%20people%20working%20in%20company.%20But%20i%20want%20to%20create%20this%20by%20using%20existing%20separate%20distribution%20lists%20which%20consist%20of%20Employees%2C%20Contractors%2C%20Bosses.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BTree%20hierarchy%20%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3EALL%3C%2FSTRONG%3E%20%3D%26nbsp%3B%20%3CEM%3EEmployees%3C%2FEM%3E%20%2B%20%3CEM%3EContractors%3C%2FEM%3E%20%2B%20%3CEM%3EBosses%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20looking%20for%26nbsp%3Ban%20option%20how%20to%20do%20this%20when%20i%20do%20not%20want%20to%20some%20people%20from%20for%20example%20distribution%20list%20%3CEM%3EEmployees%3C%2FEM%3E%20in%20my%20general%20Distribution%20list%20%3CSTRONG%3EALL.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIs%20there%20any%20option%20to%20create%20something%20like%20Black%20list%20or%20MINUS%20%3F%3C%2FP%3E%3CP%3EI%20have%20to%20use%20tree%20hierarchy%20(upper%20in%20text).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETHANKS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-727885%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-728749%22%20slang%3D%22en-US%22%3ERe%3A%20Managing%20users%20from%20Distribution%20lists%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-728749%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20only%20way%20to%20use%20%22exclude%22%20type%20of%20criteria%20is%20via%20Dynamic%20Distribution%20groups%2C%20where%20you%20can%20adjust%20the%20recipient%20filter%20accordingly.%20I%20wouldn't%20recommend%20it%20though%2C%20unless%20you%20have%20a%20very%20strict%20criteria%20to%20filter%20out%20all%20those%20users.%20Otherwise%20the%20filter%20will%20quickly%20become%20unmanageable.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-731234%22%20slang%3D%22en-US%22%3ERe%3A%20Managing%20users%20from%20Distribution%20lists%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-731234%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20I%20can't%20find%20supported%20property%20for%20custom%20rule.%20I%20don't%20know%20how%20to%20write%20a%20condition%20for%20membership%20of%20existing%20groups.%20Only%20user's%20or%20device's%20supported%20properties%20are%20there%20%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fusers-groups-roles%2Fgroups-dynamic-membership%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fusers-groups-roles%2Fgroups-dynamic-membership%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20need%20something%20like%26nbsp%3B%3A%26nbsp%3B%3CEM%3Euser.%3CSTRONG%3EgroupsMembership%3C%2FSTRONG%3E%20-eq%20%22employees%22%3C%2FEM%3E%3C%2FP%3E%3CP%3EAnd%20I'm%20not%20sure%20that%20it's%20possible%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3EAny%20hints%20please%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-731881%22%20slang%3D%22en-US%22%3ERe%3A%20Managing%20users%20from%20Distribution%20lists%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-731881%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20are%20looking%20at%20the%20documentation%20for%20Dynamic%20membership%20for%20O365%20groups%2C%20this%20does%20not%20apply%20to%20Distribution%20groups.%20Instead%2C%20you%20need%20a%20Dynamic%20Distribution%20group.%20Here%20are%20the%20properties%20supported%20for%20filtering%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-server%2Frecipient-filters%2Frecipientfilter-properties%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-server%2Frecipient-filters%2Frecipientfilter-properties%3Fview%3Dexchange-ps%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20the%20Members%20one%20to%20filter%20out%20members%20of%20another%20group%2C%20but%20as%20I%20mentioned%20above%2C%20this%20can%20quickly%20become%20messy%20when%20you%20add%20more%20conditions.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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 :

ALLEmployees + 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

3 Replies
Highlighted

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.

Highlighted

@Vasil Michev

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 ?

Highlighted

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.