Specifically, Teams will detect if the user has connected to the company's own Wi-Fi and automatically set the work location accordingly to the respective building.
I assumed Teams already did this. MS Lync (Teams predecessor) could be configured to do something similar to this.
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
I assumed Teams already did this. MS Lync (Teams predecessor) could be configured to do something similar to this.