Forum Discussion
Update Custom User Profile Property in SharePoint Online, Possible???
- Dec 17, 2018
BTW, I was able to accomplish this task by using the following PowerShell command. Thanks to Mikael Svenson.
New-PnPUPABulkImportJob -Folder "Shared Documents" -Path "userprofileimport.json" -IdP
roperty "IdName" -UserProfilePropertyMapping @{"EmpId"="EmpId"}
I've been able to do this successfully, and I can tell you to be sure you are a global admin running the PowerShell, have access to the library where you are writing/storing the JSON files, and especially pay very close attention to the format of your JSON files. That gave us more grief more than anything. I would run the script in VSCode or the ISE and go line by line to ensure things are getting loaded and check to see where you might be going sideways.
- John WarnerDec 17, 2018Iron Contributor
BTW, I was able to accomplish this task by using the following PowerShell command. Thanks to Mikael Svenson.
New-PnPUPABulkImportJob -Folder "Shared Documents" -Path "userprofileimport.json" -IdP
roperty "IdName" -UserProfilePropertyMapping @{"EmpId"="EmpId"}