Testing Microsoft Teams Graph Presence API

Teams Presence information is now available via Graph API beta interface. It is fairly simply to test using Graph Explorer by calling /beta/me/presence.

Note: you will need to give a admin consent to these API calls. You can not do this with delegated user permissions.

You may want to refer for Presence API documentation in Docs.Microsoft.Com

When you start testing this with Graph Explorer, you are required to give permissions (use Modify Permissions in Graph Explorer)

You can also use /users/(user-id-guid)/presence to retrieve a specific user’s presence:

And there is also /communications/getPresencesByUserID, which is called using POST and a list of user userids (guids) is provided.

As you can see from the activity, these two demo persons were in a call together when status was queried.

Something to note:

6 thoughts on “Testing Microsoft Teams Graph Presence API

  1. I tried to call Getpresence method in .net , but it doesn’t recognize Presence

    GraphServiceClient graphClient = new GraphServiceClient(authProvider);

    var presence = await graphClient.Me.presence.Request().GetAsync ();

    Like

  2. Is it possible to edit presence using old Skype API to set custom teams status messages?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.