chekmate1984 Posted September 28, 2018 Posted September 28, 2018 Hi alll does any one know or a pointer on a powershell script to bulk add mmbers to office 365 group or Ad synced group I have created a distribution group in AD with all our primary students, but its only syncing group and not the members. so i need to manually add members to group. I thought there must be some powershell command for it?
Boredguy Posted September 28, 2018 Posted September 28, 2018 In AD you can highlight all your accounts within an OU, right click and select to add to a group. The delta sync every 15/20 minutes by Azure Connect will then upload them to 365 Also make sure your group was a Universal scope and has the e-mail address value set
chekmate1984 Posted September 28, 2018 Author Posted September 28, 2018 tried that already, i have added users to a group in AD is universal and have email field set The sync happens but only syncs the group, not the users that are in the group.
Boredguy Posted September 28, 2018 Posted September 28, 2018 On your server where Azure AD Connect is installed, you can force a full sync via powershell Import-Module ADSync Start-ADSyncSyncCycle -PolicyType Initial
chekmate1984 Posted September 28, 2018 Author Posted September 28, 2018 no joy, sync did say success but the users within the group are not syncing. Its blank in office 365 i did read somewhere that this is not possible and apparantly groups would sync but not the members of that group. has this worked with you?
Boredguy Posted September 28, 2018 Posted September 28, 2018 We have several AD based distribution groups, both ones with users as direct members and ones that have nested groups. All of which work as long as the group scope is set to universal. We leave the group type as Security and put the e-mail address in the mail field and 365 syncs it all up happily
snagrat Posted September 28, 2018 Posted September 28, 2018 Are your groups in an OU that is set to be synced?
psydii Posted September 28, 2018 Posted September 28, 2018 You can’t nest AD groups into Office365 Groups. You need to enumerate the AD group member and then use the Add-UnifiedGroupLinks cmdlet to add those users as members, owners and subscribers to the Office365 Group. https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/Add-UnifiedGroupLinks?view=exchange-ps
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now