0

I am looking if there is a non-programmatic way to auto populate mobile number property from Active Directory to SharePoint Online User Profile properties so it can be used in the contact list instead of manually entering and maintaining it separately.

We can see only few pre-defined fields that were getting populated. Please let me know if there is any powershell script or configurations at Active directory/SharePoint. We are using Directory Sync to Office 365 to allow the login via user principle name.

1 Answer 1

2

While this cannot be done "out of the box", it can be done programmatically via CSOM or Web Service (CSOM is preferred). Microsoft has released a few samples. The Core.UserProfilePropertyUpdater is an example using the userprofileservice.asmx Web Service in SPO.

The second option is the CSOM. While not a complete sample, the basic outline is there to create a console application on-prem to consume attributes from Active Directory and push them to SPO.

If you need additional help in working with Active Directory attributes, there are some great articles, and one I've personally used quite a bit is Howto: (Almost) Everything In Active Directory via C#.

In the hopefully near future, there will be a User Profile Batch Update API. Unlike the CSOM solution, this solution should allow you to use an App Principal (rather than a stored username/password of a Global or SharePoint Admin) as well as be more efficient to update User Profile properties.

2
  • your answer could be correct but i am looking for a non-programmatic solution. Thanks for the insights though.
    – kesava
    Commented Apr 8, 2016 at 0:34
  • 2
    The answer would be "no".
    – user6024
    Commented Apr 8, 2016 at 0:35

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.