Use the following PowerShell script to add a user or security group that already exists to a SharePoint Group. Replace http://yoursite, loginname, and “groupname” with your values.
Add-SPOUser [-Site] http://yoursite [-LoginName] loginname [-Group] “groupname”
Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in San Francisco in 2017!