Jump to content

powershell script to add members to office 365 group


Recommended Posts

Posted

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?

Posted

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

Posted

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?

Posted

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

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...