Avatar of Tufin
Tufin
 asked on

how to update "office location property with Sharepoint 365 shell

Hi All,

in order to filter correctly with the app for a phone directory in share point i need to update the local "Office location" property which isn't updated by dirsync

inside office 365 -> Sharepoint admin center -> user profiles -> manage user profiles -> search a name and "edit my profile"
inside those parameters which some is synced with AD through dirsync and some are standalone

once of the standalone properties is "Office Location" which manually, i can edit and it works.
what i want is to find a way to update to 200 specific users in an OU through shell and replace or set the value "Active"

any idea how to?
Shell ScriptingMicrosoft 365Microsoft SharePointSBSPowershell

Avatar of undefined
Last Comment
Vasil Michev (MVP)

8/22/2022 - Mon
Vasil Michev (MVP)

You cannot update this via the SharePoint Online module for PowerShell. Use CSOM instead: http://blogs.msdn.com/b/vesku/archive/2014/11/07/sharepoint-user-profile-properties-now-writable-with-csom.aspx
Tufin

ASKER
how do i run those scritps .. what should i save them as ?
ASKER CERTIFIED SOLUTION
Vasil Michev (MVP)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy