SharePoint online

SharePoint Online cannot synchronize custom user profile properties from an on-premises Active Directory (AD) or Azure AD (AAD).

In scenarios where content targeting values are populated in AD or AAD a custom script or application is needed to copy the values from the directory into the user properties.

For more information on how the SharePoint Online profile synchronization works, see Information about user profile synchronization in SharePoint Online.