PeopleSync Documentation

How To Migrate SharePoint Agent to OAuth

Introduction

Microsoft has announced that from May 1st 2026 on, IDCRL authentication is disabled and will no longer be supported for SharePoint Online connections. To ensure continued access, you must use an Entra ID App Certificate for authentication from this date forward.

For PeopleSync to OAuth with SharePoint Online, you must create an app registration in Azure Portal that uses certificate authentication and assign the necessary permissions.

In this guide, we will show how to configure an existing SharePoint that is connected to SharePoint Online to use OAuth.

How to Migrate to OAuth

Migrating an existing agent consists of the following steps:

  1. Creating an app registration in Azure Portal

  2. Creating an Entry ID App Certificate in PeopleSync and uploading the certificate to the app registration in Entra ID.

  3. Setting permissions on the app registration in Entra ID.

  4. Configuring SharePoint Agent.

Creating an app registration in Azure Portal

To create an app registration in Microsoft Azure Portal, do the following:

  1. In a browser, navigate to https://portal.azure.com, then go to Azure Active Directory.

  2. On the left-hand side, select App registrations, then new registration.

    Azure Portal App registrations and New registration
  3. Enter a name for the app registration. As account type, select Accounts in this organizational directory only. Then click on Register.

    Azure app registration form

Creating an Entry ID App Certificate in PeopleSync

  1. In PeopleSync Console, navigate to Agents > Action Accounts.

  2. Click on the arrow next to the New icon and select Entra ID App Certificate.

  3. Enter client id and tenant id from the newly created Entra ID app registration.

  4. Click on the Download Public Key PEM) icon to download the certificate’s public key:

    PeopleSync Entra ID App Certificate public key action
  5. In your Entra ID app registration, go to to Certificates & Secrets > Certificates and click on Upload Certificate. Upload the certificate you downloaded from PeopleSync in the previous step:

    Entra ID certificate upload

Assigning permission to access SharePoint Online

To access SharePoint Online, the SharePoint Agent needs an app registration in Azure AD with specific API permissions.

  1. In a browser, navigate to https://portal.azure.com, then go to Entra ID.

  2. On the left-hand side, select App registrations, then open the relevant app registration in the list.

  3. In API Permissions, click on “Add a permission”.

    Entra ID Add a permission
  4. Select SharePoint API:

    SharePoint API selection
  5. Choose Application permissions.

    Application permissions selection
  6. Choose Sites.Read.All and Sites.Selected permissions.

    SharePoint Sites.Read.All and Sites.Selected permissions
  7. Click on “Add permissions”.

  8. Grant admin consent for the permissions.

    Entra ID admin consent

Configuring SharePoint Agent

Use the Entra ID App Certificate in your SharePoint Agent. Make sure Auth Scheme is set to AzureServicePrincipalCert:

  1. In PeopleSync Console, open your SharePoint Agent.

  2. In Configuration, switch Account to your Entra ID App Certificate. Also change Authentication Mode zo

    SharePoint Agent OAuth configuration
  3. Save the changes you made.

  4. Run the agent manually by clicking the Play button in the list of agents. Check in PeopleSync Console log if the agent ran successfully.

Note: You could also create a test address list and SharePoint Agent alongside your production SharePoint agent to test the new authentication without impacting production.