Avatar of Pete
Pete
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Email distribution groups FROM Azure TO on premises AD

We have a 3rd party system that creates email distribution groups in Azure. We would really like these groups in our on premises AD.

We use AAD connect and have enabled Group writeback but it seems:

The Group writeback feature does not handle security groups or distribution groups.

How can I get the groups to our on premises AD, this will need to run everyday for updated membership etc.

Thanks
PowershellMicrosoft 365Azure

Avatar of undefined
Last Comment
Peter Hutchison

8/22/2022 - Mon
Peter Hutchison

To be honest you should create them in AD first and use AD Connect (aka DirSync) to sync and create objects in Azure / Office 365.
Pete

ASKER
Creating them in AD first is not an option, the software creates them from our school MIS to azure, there’s no onsite option. We need a way to script the groups back onsite. Or another idea.
Thanks
Peter Hutchison

What you can do is expotr the new groups to a file as part of the job on Azure and run another powershell command to download that file and create the equivalent groups in AD.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Pete

ASKER
thanks, could you please advise a rough format for the script? dont need anything specific.
ASKER CERTIFIED SOLUTION
Peter Hutchison

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.