need to create an dynamic distribution group based on division attribute

dougdog
dougdog used Ask the Experts™
on
need to create an exchange dynamic distribution group based on division attribute of supplies
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Vikas BhatExperienced IT Infrastructure Services/operations Manager

Commented:
exchange version?
Vikas BhatExperienced IT Infrastructure Services/operations Manager

Commented:

Author

Commented:
2013 sp3
365 hybrid
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
that is for department it is division i need

Commented:
Division isn't a recognized filterable property.  A complete list of filterable properties can be found here:

https://technet.microsoft.com/en-us/library/bb738157(v=exchg.160).aspx

I suggest CustomAttributes in Exchange or extensionAttributes in AD in lieu of Division.
Commented:
It sounds like you have users with a Division attribute that contains the value, 'Supplies'.  If that is correct, you can run the following script on your Exchange server to copy the contents of the Division attribute to extensionAttribute1 and create a DDG based on that instead:

Import-Module ActiveDirectory
foreach ($user in (Get-ADUser -Filter {Division -ne $null} -Properties Division)) {
  $division = $user.division
  Set-ADUser $user.userprincipalname -Add @{extensionAttribute1=$division}
}

New-DynamicDistributionGroup -Name 'Supplies' -RecipientFilter {CustomAttribute1 -eq 'Supplies'}

Open in new window

Vikas BhatExperienced IT Infrastructure Services/operations Manager
Commented:
I agree Jason. As from your comments it looks like your Active directory already is populated with Divison attribute for all users, so in this case you can set value of any Custom Attribute 1-15 (anyone empty) and populate with value of division from Active Directory.

once done you can again create the Dynamic group as below,
Dynamic-Disturbution.jpg

Author

Commented:
what ever attribute i use must be able to be populated by a system that updates AD
so think that rules out custom attribute
so would need to use any of the filterable properties supplied in the link you sent  or
extension attributes
is this correct? how many extension attributes can there be?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial