Graph API Presence should support Application permissions
OK found some docs:
https://docs.microsoft.com/en-us/graph/api/presence-setpresence?view=graph-rest-beta&tabs=http
https://docs.microsoft.com/en-us/graph/api/presence-clearpresence?view=graph-rest-beta&tabs=http
Docs mention in a callout flagged as important:
Provide the ID of the application as sessionId in the request.
Is it asking for the Teams App ID? Clicking around in the Azure portal, it seems to be 1fec8e78-bce4-4aaf-ab1b-5451cc387264.
My goal is this. I have written an app that retrieves the presence for all users in a specified AD group and displays them in a list on a tab within Teams. Management want the ability to set the presence of a specific user when they go on vacation for example and forget to set their presence accordingly. Specific people would be provided the ability to essentially override the displayed presence.
The C# example has a hard coded session ID. Obviously I need to replace that value, but with what?
Any help always appreciated