Forum Discussion

JensK2023's avatar
JensK2023
Copper Contributor
Jul 28, 2023

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.

 

 

 

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#M8092

 

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

 

Thanks!

 

Jens

3 Replies

  • BenjaminBurgy's avatar
    BenjaminBurgy
    Copper 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.

  • BenjaminBurgy's avatar
    BenjaminBurgy
    Copper Contributor

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

  • 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

Resources