Idira Idaptive Office 365 Token Based Authentication Provisioning Errors

Idira Idaptive Office 365 Token Based Authentication Provisioning Errors

101
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:05 PM


Symptom


When using the Office 365 Token Based Authentication method. You may run into the following error below. Only if you previously enabled Basic Authentication.

====
Reason: Operation failed on object testuser@ocean.com using O365Coexistence. O365Coexistence.Export did not return any objects. Exception - System.AggregateException: One or more errors occurred. ---> Microsoft.Graph.ServiceException: Code: Request_BadRequest
Message: Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration.
====
 


Environment


21.1

Cause


This error only occurs when the Basic Authentication method was previously used to sync Office 365 users.

Resolution


You will need to do the following:

1. Enable Token Based Authentication in the Office 365 application within the Idaptive Tenant.
https://docs.cyberark.com/Product-Doc/OnlineHelp/Idaptive/Latest/en/Content/Applications/AppsWeb/Office365/O365_ConfigInAdmin.htm

2. Run this command If the users were previously synced with Basic Authentication. DirSync stays off only when previous synced with Basic Authentication. New setups using Token Based Authentication are unaffected.


Set-MsolDirSyncEnabled -EnableDirSync $false is the command to turn off the directory sync.
 

See the following link for more information:

https://docs.microsoft.com/en-us/microsoft-365/enterprise/turn-off-directory-synchronization?view=o365-worldwide

NOTE: If the DirSync command Set-MsolDirSyncEnabled -EnableDirSync is set to $false you will need to turn it back on afterwards. Per Microsoft, there is a 72 hour cooldown until you can re-enable DirSync with the below command - 

Set-MsolDirSyncEnabled -EnableDirSync $True



4. Run a full Office 365 Outbound Provisioning Sync in the Idaptive Admin Portal
https://docs.cyberark.com/Product-Doc/OnlineHelp/Idaptive/Latest/en/Content/Applications/AppsOvw/ConfigAutoDailyUserSynch.htm?Highlight=outbound%20provisioning



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001LFOCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail