Views:
GOsupport Logo




Configure SharePoint Site to Allow BCO akoyaGO Integration Azure AD Enterprise Application

 

  Configure Site Write Permission

 
1. 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
 
The expected output of the 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
 
 
2. 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"
 
3. Configure "BCO akoyaGO Integration" with write access to the 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>"
 
The expected output of the 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)