Forum Discussion

mattchowell's avatar
mattchowell
Iron Contributor
Jul 28, 2022

Bulk add an Azure AD group to multiple sites (powershell)

I need to add an Azure AD group to multiple sites with full control permissions. I've exported the list of sites to a csv file so just need to know the powershell routine and what fields I need to include. Ideally something simple like:

 

Site urlAzure group idPermissions level

1 Reply

  • Bharath Arja's avatar
    Bharath Arja
    Iron Contributor

    mattchowell Check this out https://docs.microsoft.com/en-us/microsoft-365/enterprise/manage-sharepoint-users-and-groups-with-powershell?view=o365-worldwide#automate-management-of-large-lists-of-users-and-groups

Resources