Azure Portal and Azure AD Authentication
Azure Communication Services (ACS) are being deprecated. Authentication via Azure Portal and Azure AD is the modern way to manage app registration, communication and authentication.
You can use an Azure Registered Application with a certificate to connect to SharePoint Online. This allows for modern API Permission management scopes such as Sites.Selected via the SharePoint API in Azure.
Prerequisites
Ensure you have an Azure Registered Application in Azure Portal.
Grant the desired Application API Permissions for SharePoint in the Azure Portal.
Ensure you grant admin consent for your organisation on API Permissions.
Your Azure Registered Application Client ID and Tenant ID.
You can follow the guide on Microsoft for help Granting access via Azure AD.
Available SharePoint API Application permissions:
Sites.FullControl.All - Allows the app full control of all site collections without a signed in user.
This allows for add, edit and delete operations on ALL site objects.
This has the ability to add, edit, delete entire site collections and document libraries.
Sites.Selected - Allow the application to access a subset of site collections without a signed in user. The specific site collections and the permissions granted will be configured in SharePoint Online or via the Graph API
This will only work if you grant Sites.Selected for the Registered Application used to connect to SharePoint Online. (Application A).
You must then use another Azure Registered Application with Graph API Application permissions of Sites.FullContrl.All to add the SharePoint application to each sites granted identities. (Application B)
This requires the highest level of permissions to change.
This can be achieved with PowerShell cmdlets or by calling the Graph API directly.
Certificate and Credential
A signed certificate is needed to authenticate and connect between the two systems.
Create a signed certificate for your application. This may be self signed depending on company policies.
You can use a PnP cmdlet to help.
Ensure you have uploaded the generated certificate to the Registered Azure Application in Azure Portal.
Create a Certificate Credential within Aiimi Insight Engine using the .pfx certificate file.
For support setting up credentials use our guide on managing credentials.
Last updated