Granting permission to Multiple Sites - Powershell Script

Introduction

Granting Dialogue Cloud the correct permissions to multiple sites at once can be a tedious, repetitive task. To make this a little easier a PowerShell script may be used.

Download (now includes region emea-szn)

Note

Remember you may need to "Unblock" the .zip files in the file properties after downloading, but before unzipping

Prerequisites

  • To run this script a Microsoft Entra App Registration (yes, one more) in your own tenant with the below details.

    Tip

    An existing Dialogue Cloud deployment app can also be used for this.

    For example, the new modernized SharePoint .Site.Creator script also requires this permission.
    See: UCC Site Creator (Modernized) - Overview & Prerequisites

    • Application (Client) Id

    • Valid Client Secret

    • Admin consent granted Application Permissions:

      • Microsoft Graph -> Application Permissions -> Sites.FullControl.All

        Note

        Sites.FullControl.All is needed when running this script (by you as administrator) to set the right permissions on your UCC sites selected while running this script.

        After use of the script it is ok to revoke the permissions, as this app is not used in day-to-day operation of a UCC. Until a new (set of) sites will need to be created for new/future UCC's.

Instructions