Set work location via API (Graph?)

Copper Contributor

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.

 

change-in-teams.png

 

 

This workaround here is not applicable to our use case:

https://techcommunity.microsoft.com/t5/teams-developer/set-work-location-via-api-graph/m-p/3874804#M...

 

There seems to be a high interest in this capability. Can you add this function to Microsoft Graph?

 

Thanks!

 

Jens

3 Replies

Also need it, all we can do is to like the feature request I guess
https://feedbackportal.microsoft.com/feedback/idea/735c1234-0807-ee11-a81c-000d3ae5b6f4

Really impatient to have it too! Another similar feedback ticket about this request: https://feedbackportal.microsoft.com/feedback/idea/bdf9ade1-c54c-ee11-a81c-0022484eccc5

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/SetTeamsWo...

 

As he said, the hard part is "How to get the access token from an headless process" but PowerShell provides something.