help need to create Dynamic Distribution group in exchange online office 365

%3CLINGO-SUB%20id%3D%22lingo-sub-1619644%22%20slang%3D%22en-US%22%3Ehelp%20need%20to%20create%20Dynamic%20Distribution%20group%20in%20exchange%20online%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1619644%22%20slang%3D%22en-US%22%3E%3CP%3Efolks%2C%3C%2FP%3E%3CP%3E%26nbsp%3BI%20have%20created%20Dynamic%20security%20group%20with%20this%20parameters%20query%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E(user.objectId%20-ne%20null)%20and%20(user.userType%20-eq%20%22Member%22)%20and%20(user.DisplayName%20-notContains%20%22Archive%22)%20and%20(user.employeeId%20-ne%20null)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Elike%20to%20replicate%20with%20Dynamic%20Distribution%20group.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EUser%20must%20have%20mailbox%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Euser%20must%20have%20employeeID%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ESpecific%20Office%26nbsp%3B%20(there%20is%20office%20properties%20in%20recipients).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ethis%20is%20so%20far%20what%20i%20have%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ENew-DynamicDistributionGroup%20%22DDG_AllEmployees%22%20-RecipientFilter%20%7B((RecipientType%20-eq%20'UserMailbox')%20-and%20-not%20(UserAccountControl%20-eq%20%22AccountDisabled%2C%20NormalAccount%22))%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20help%2C%20thanks%20in%20advance%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1619644%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1620789%22%20slang%3D%22en-US%22%3ERe%3A%20help%20need%20to%20create%20Dynamic%20Distribution%20group%20in%20exchange%20online%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1620789%22%20slang%3D%22en-US%22%3E%3CP%3EThere's%20no%20%22%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20font-family%3A%20'SegoeUI'%2C'Lato'%2C'Helvetica%20Neue'%2CHelvetica%2CArial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EemployeeId%3C%2FSPAN%3E%22%20attribute%20for%20Exchange%20Online%20to%20leverage%2C%20so%20you%20cannot%20use%20that.%20You%20can%20however%20populate%20one%20of%20the%20customattributeXX%20and%20use%20it%20instead.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1620808%22%20slang%3D%22en-US%22%3ERe%3A%20help%20need%20to%20create%20Dynamic%20Distribution%20group%20in%20exchange%20online%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1620808%22%20slang%3D%22en-US%22%3EcustomattributeXX%20any%20link%20how%20to%20create%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1621553%22%20slang%3D%22en-US%22%3ERe%3A%20help%20need%20to%20create%20Dynamic%20Distribution%20group%20in%20exchange%20online%20office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1621553%22%20slang%3D%22en-US%22%3E%3CP%3EThere's%20nothing%20to%20%22create%22%2C%20the%20attributes%20are%20already%20present%20in%20Exchange%20Online.%20All%20you%20need%20to%20do%20is%20populate%20their%20values%20as%20needed%2C%20for%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ESet-Mailbox%20vasil%20-CustomAttribute12%20blabla%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

folks,

 I have created Dynamic security group with this parameters query:

(user.objectId -ne null) and (user.userType -eq "Member") and (user.DisplayName -notContains "Archive") and (user.employeeId -ne null)

 

like to replicate with Dynamic Distribution group.

User must have mailbox

user must have employeeID

Specific Office  (there is office properties in recipients).

 

this is so far what i have

New-DynamicDistributionGroup "DDG_AllEmployees" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and -not (UserAccountControl -eq "AccountDisabled, NormalAccount"))}

 

Any help, thanks in advance

3 Replies
Highlighted

There's no "employeeId" attribute for Exchange Online to leverage, so you cannot use that. You can however populate one of the customattributeXX and use it instead.

Highlighted
customattributeXX any link how to create
Highlighted

There's nothing to "create", the attributes are already present in Exchange Online. All you need to do is populate their values as needed, for example:

 

Set-Mailbox vasil -CustomAttribute12 blabla