Jump to content

Dynamic distribution lists looking for a string in departments


Recommended Posts

Posted
Anyone suggest how I can look for a string in Dynamic distribution list as I need to set this up for the parental contacts. Currently the system use a year group in Departments and company I would like to be able to have one field that contains all the year groups a parents needs say "1,5,6"? Also it currently breaks for families with more that two student in the school.
Posted
My first thought on this would be to give each year a binary number then script the groups based on the calculation in the attribute..... I will give this more thought.
Posted
My first thought on this would be to give each year a binary number then script the groups based on the calculation in the attribute..... I will give this more thought.

 

That would be a pain as you would need to work out a value you for every permutation which is at about 60 combination if you allow every parent to have 5 children in the school.

Posted
Yeah 52 different combinations I reckon (if you have 13 year groups and 5 children per parent, assuming that you don't calculate a value for the first child) but the values are a known that's the point behind the exercise. You could then store that value in one of the extensionattributes in AD and then create the groups based on the value found in that attribute by using dynamic distribution groups or as I would do have a script that updates the membership of a group in AD. To be honest working out the values for 52 combinations is a trivial matter for a computer and any programing language or an excel spread sheet!
Posted
Yeah 52 different combinations I reckon (if you have 13 year groups and 5 children per parent, assuming that you don't calculate a value for the first child) but the values are a known that's the point behind the exercise. You could then store that value in one of the extensionattributes in AD and then create the groups based on the value found in that attribute by using dynamic distribution groups or as I would do have a script that updates the membership of a group in AD. To be honest working out the values for 52 combinations is a trivial matter for a computer and any programing language or an excel spread sheet!

 

I recalculate and I think it is over 200,000 combinations.

Posted (edited)
I have miss understood the initial requirment and I was thinking about putting the contact in an AD group called year 1/ year 2 so on.... and then calculating a value from there but to be fair that's over kill you could just use the year group and forget about a calculated value all together, the only reason I was thinking about a value was for automation of the administrative tasks on the groups in the future, along with calculating the dynamic distribution group but that's just not needed and unnesaersary to be honest. Edited by HPlum78
Posted

new-DynamicDistributionGroup -Name 'EDG-Year7-Parents' -OrganizationalUnit 'DomainName/Groups/Email/Distribution/Dynamic Groups' -Alias 'Year7 Parents' -RecipientFilter {(MemberOfGroup -LIKE "CN=EDM-HP273-1,OU=Distribution,OU=Groups,DC=YourDomain,DC=Sch,DC=uk")}

 

I think that looks right.....

Posted
new-DynamicDistributionGroup -Name 'EDG-Year7-Parents' -OrganizationalUnit 'DomainName/Groups/Email/Distribution/Dynamic Groups' -Alias 'Year7 Parents' -RecipientFilter {(MemberOfGroup -LIKE "CN=EDM-HP273-1,OU=Distribution,OU=Groups,DC=YourDomain,DC=Sch,DC=uk")}

 

I think that looks right.....

 

Does that work for multi groups or may be I have a dynamic group nested in a static group?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...