Some of the user properties are not updated in my SPO like SPS-Location and was thinking if there is a way to access an on-premise user profile from SPO site collection.

Thanks in advance.

  • It would be more convenient to find out why the SPO's user properties are not getting updated instead of creating such a workaround. So: can you? -Yeah, supposedly, but you probably shouldn't.
    – moe
    Commented Jul 5, 2017 at 21:07

1 Answer 1


The proper way to work this would be to use a CSOM application to push attributes from Active Directory to SPO. As you're probably aware, Azure AD Connect does not synchronize all attributes from Active Directory to Azure AD, and on top of that, not all attributes are synchronized from Azure AD to the SharePoint Online User Profile Service.

What I would recommend is leveraging one of the existing samples, User Profile Batch Update API is a good place to start, to build a CSOM application that will push those attributes into SPO directly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.