need to create an dynamic distribution group based on division attribute

need to create an exchange dynamic distribution group based on division attribute of supplies
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vikas BhatExperienced IT Infrastructure Services/operations ManagerCommented:
exchange version?
Vikas BhatExperienced IT Infrastructure Services/operations ManagerCommented:
dougdogAuthor Commented:
2013 sp3
365 hybrid
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

dougdogAuthor Commented:
that is for department it is division i need
Jason CrawfordTransport NinjaCommented:
Division isn't a recognized filterable property.  A complete list of filterable properties can be found here:

I suggest CustomAttributes in Exchange or extensionAttributes in AD in lieu of Division.
Jason CrawfordTransport NinjaCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vikas BhatExperienced IT Infrastructure Services/operations ManagerCommented:
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,
dougdogAuthor 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?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.