These instructions leverage a limited Graph API permission scope via Sites.Selected, to explicitly grant access only to a particular Sharepoint site collection.
Sign into the Azure portal. Select Azure Active Directory, then App registrations > New registration.
On the Register an application page, register an app with the following:
Field | Value |
---|---|
Name | Glean |
Supported account types | Accounts in this organizational directory only (Single tenant) |
Redirect URI | (Leave this field blank) |
Click Register.
Please complete these steps for each application created. This will require using PnP PowerShell. If you have already installed PnP PowerShell, you can skip the installation step.
Install-Module -Name PnP.PowerShell
Import-Module PnP.PowerShell
certificate.crt
) that you generated previously to all applications. See the Upload Certificate to Azure step.
Ensure that you have Sharepoint Powershell installed. If any of the following commands do not work, you may need to install the module first before running the commands again within Powershell.Connect-PnPOnline -Url $SITE_COLLECTION_URL -DeviceLogin -ClientId <clientId> -Tenant <tenantId>
Connect-PnPOnline -Url $SITE_COLLECTION_URL -Interactive -ClientId <clientId>
(See section Interactive Connection Troubleshoot if not working)Grant-PnpAzureADAppSitePermission -AppId $CLIENT_ID -Site $SITE_COLLECTION_URL -Permissions FullControl
Glean cannot automatically determine the sites with Sites.Selected permissions applied ahead of time. This requires configuration via the Manage Data tab.
http://localhost
. Note that this should really be http and not httpsConnect-PnPOnline -Url $SITE_COLLECTION_URL -Interactive -ClientId <clientId>
These instructions leverage a limited Graph API permission scope via Sites.Selected, to explicitly grant access only to a particular Sharepoint site collection.
Sign into the Azure portal. Select Azure Active Directory, then App registrations > New registration.
On the Register an application page, register an app with the following:
Field | Value |
---|---|
Name | Glean |
Supported account types | Accounts in this organizational directory only (Single tenant) |
Redirect URI | (Leave this field blank) |
Click Register.
Please complete these steps for each application created. This will require using PnP PowerShell. If you have already installed PnP PowerShell, you can skip the installation step.
Install-Module -Name PnP.PowerShell
Import-Module PnP.PowerShell
certificate.crt
) that you generated previously to all applications. See the Upload Certificate to Azure step.
Ensure that you have Sharepoint Powershell installed. If any of the following commands do not work, you may need to install the module first before running the commands again within Powershell.Connect-PnPOnline -Url $SITE_COLLECTION_URL -DeviceLogin -ClientId <clientId> -Tenant <tenantId>
Connect-PnPOnline -Url $SITE_COLLECTION_URL -Interactive -ClientId <clientId>
(See section Interactive Connection Troubleshoot if not working)Grant-PnpAzureADAppSitePermission -AppId $CLIENT_ID -Site $SITE_COLLECTION_URL -Permissions FullControl
Glean cannot automatically determine the sites with Sites.Selected permissions applied ahead of time. This requires configuration via the Manage Data tab.
http://localhost
. Note that this should really be http and not httpsConnect-PnPOnline -Url $SITE_COLLECTION_URL -Interactive -ClientId <clientId>