How do you remove certain mailboxes from the All Users Dynamic Distribution Group?

%3CLINGO-SUB%20id%3D%22lingo-sub-364319%22%20slang%3D%22en-US%22%3EHow%20do%20you%20remove%20certain%20mailboxes%20from%20the%20All%20Users%20Dynamic%20Distribution%20Group%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-364319%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20the%20'All%20Users'%20Dynamic%20distribution%20group%20within%20our%20Office%20365%20system%20and%20this%20includes%20as%20part%20of%20the%20Membership%20settings%20%22Users%20with%20Exchange%20mailboxes%22.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20need%20to%20remove%20two%20mailboxes%20from%20this%20group%20however%20when%20I%20click%20on%20the%20%22add%20a%20rule%22%20button%20it%20just%20gives%20me%20a%20selection%20of%20attributes%20(state%2C%20company%2C%20department%2C%20custom%20attribute%201%20and%20so%20on).%20It%20doesn't%20let%20me%20exclude%20mailboxes%20based%20on%20the%20user.%3CBR%20%2F%3E%3CBR%20%2F%3EDoes%20anyone%20know%20if%20it%20is%20possible%20to%20remove%20certain%20users%20from%20a%20dynamic%20group%3F%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20don't%20have%20our%20Office%20365%20Business%20Essentials%20system%20linked%20to%20Active%20Directory.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-364319%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-364395%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20you%20remove%20certain%20mailboxes%20from%20the%20All%20Users%20Dynamic%20Distribution%20Group%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-364395%22%20slang%3D%22en-US%22%3E%3CP%3ERules%20for%20DDG%20membership%20are%20indeed%20based%20on%20attributes%2C%20so%20you%20cannot%20just%20%22point%22%20to%20a%20given%20mailbox.%20An%20easy%20solution%20is%20to%20populate%20one%20of%20the%20customattributeXX%20values%20and%20use%20this%20as%20exception.%20You%20can%20create%20a%20more%20complex%20rules%20via%20PowerShell%20and%20the%20Set-DynamicDistributionGroup%20cmdlet%2C%20such%20as%20excluding%20certain%20mailboxes%20by%20Name%2C%20DisplayName%2C%20GivenName%2C%20whatever%20other%20attribute%20you%20can%20think%20of...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

We have the 'All Users' Dynamic distribution group within our Office 365 system and this includes as part of the Membership settings "Users with Exchange mailboxes".

I need to remove two mailboxes from this group however when I click on the "add a rule" button it just gives me a selection of attributes (state, company, department, custom attribute 1 and so on). It doesn't let me exclude mailboxes based on the user.

Does anyone know if it is possible to remove certain users from a dynamic group?

We don't have our Office 365 Business Essentials system linked to Active Directory.

Thanks in advance.

1 Reply
Highlighted

Rules for DDG membership are indeed based on attributes, so you cannot just "point" to a given mailbox. An easy solution is to populate one of the customattributeXX values and use this as exception. You can create a more complex rules via PowerShell and the Set-DynamicDistributionGroup cmdlet, such as excluding certain mailboxes by Name, DisplayName, GivenName, whatever other attribute you can think of...