Views:
 

Prerequisites 

 

Configure Site Write Permission

 
Automatically create an app registration for interactive login
 
#Create Entra App registration so PnP PowerShell can connect to tenant
Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP Rocks" -Tenant [yourtenant].onmicrosoft.com -Interactive
 
Expected output of command:
 
Checking if application 'PnP Rocks' does not exist yet...Success. Application 'PnP Rocks' can be registered.
App PnP Rocks with id XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX created.
App created. You can now connect to your tenant using:  Connect-PnPOnline -Url <yourtenanturl> -Interactive -ClientId XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 
 
Connect to SharePoint Online site using PnP PowerShell using MFA
#Connect to SharePoint site using generated ClientId in last step
Connect-PnPOnline -Url [yourtenant].sharepoint.com -Interactive -ClientId "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
 
Configure "BCO akoyaGO Integration" with write access to SharePoint site
#Configure Write access to SharePoint site
Grant-PnPAzureADAppSitePermission -AppId "a86b9632-42bf-4dfe-83c8-bbc95145504b" -DisplayName "BCO akoyaGO Integration" -Permissions Write -Site "<SharePoint Site URL>"
 
Expected output of command. If you get an output similar to this, you have configured SharePoint correctly:

Id    : aTowaS50fG1zLnNwLmV4dHxhODZiOTYzMi00MmJmLTRkZmUtODNjOC1iYmM5NTE0NTUwNGJAN2VlN2JlMDAtZGYzMy00Nzg0LWJiZDMtZDMwNGIzZDBjNmIx
Roles : {write}
Apps  : {BCO akoyaGO Integration, a86b9632-42bf-4dfe-83c8-bbc95145504b}
 
 
Comments (0)