PeopleSync Knowledge Base

Office 365 SharePoint Agent Credential Failure

🤔 Problem

Your SharePoint Agent is pointing to SharePoint Online and the agent fails with the following error message:

[500] Could not execute the specified command: Unrecognized response when getting SharePoint online security cookies, please check your credentials.

🌱 Solution

Please note that from , certificate-based OAuth authentication must be used to connect to SharePoint Online. Upgrade to PeopleSync 26.4 or higher to use it.

Please see SharePoint Online Connection Fails with IDCRL Error for details.

SharePoint Agent uses basic authentication for SharePoint Online. It does not support multifactor authentication, modern authentication or ADFS authentican. When using the SharePoint Agent with Office 365, the user used for authentication must satisfy the following conditions:

  • User must not authenticate with ADFS or modern authentication. Create a user for the SP agent directly in Office 365 so that ADFS is not used.

  • If Conditional Access policy is enabled in Office 365, exclude the user from said policy.

Depending on your Office 365 setup, you can also set an app password for the account and use it in the SharePoint Agent. Please see Manage app passwords for two-step verification (microsoft.com) for details.