Forum Discussion
JensK2023
Jul 28, 2023Copper Contributor
Set work location via API (Graph?)
Hi Graph Team! We would like to set the work location ("Office", "Remote") via Graph API endpoint. We want to synchronize the work location in Teams / O365 with information from our internal tool...
BenjaminBurgy
Jun 03, 2024Copper Contributor
Found something on Medium, just FYI: https://medium.com/@mozzeph/automate-setting-work-location-in-teams-outlook-poc-deb7b05de08d
He is able to set the work location using PowerShell: https://github.com/mozziemozz/TeamsPhoneAutomation/blob/main/Scripts/SetTeamsWorkLocation/SetTeamsWorkLocation.ps1
As he said, the hard part is "How to get the access token from an headless process" but PowerShell provides something.