Forum Discussion
IT Support
Sep 20, 2018Copper Contributor
Bulk update custom user profile properties for SharePoint Online
I would like to update the SharePoint user profiles to display the mobile number. I found it can be done with PowerShell and a JSON file (https://docs.microsoft.com/en-us/sharepoint/dev/solution-...
IT Support
Sep 20, 2018Copper Contributor
I tried to run the script and get:
Exception calling "ExecuteQuery" with "0" argument(s): "Property name [CellPhone] can be edited by the user."
At line:35 char:1
+ $context.ExecuteQuery();
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ServerException
Import job created with the following identifier: 00000000-0000-0000-0000-000000000000
Jeroen Derde
Jan 08, 2019Copper Contributor
A bit late, but might save someone a little time later on.
See: https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/bulk-user-profile-update-api-for-sharepoint-online
| Property Names [AboutMe] are editable by user. | This would be thrown by the CSOM API when you call the ExecuteQuery method when submitting the job to your tenant. The API validates that all properties currently being mapped are NOT user editable. The exception points out the property that cannot be used. In this example, we have tried to map a JSON property to the AboutMe property in the user profile service properties, but this is not allowed because AboutMe is a user editable property. |