Forum Discussion

Roberto_Filho's avatar
Roberto_Filho
Copper Contributor
Jul 12, 2023

Endpoint beta/me/presence is always returning availability as offline

Hello All,

 

I have developed a piece of a code where I have an app registration on azure.

 1) Grant the admin consent and user consent for the microsoft graph scopes, IE Presence.Read.

 2) I have done the msal authentication and getting the access token. 

 3) I am acquiring silently the token now with the scopes for Presence and trying to do a get on the api 

https://graph.microsoft.com/beta/me/presence, however, the status is always offline.
  1. availability: "Offline"

4) is there anything else that I am missing? if I do the exact same code and only change the access token from the one that graph explorer offers, I am able to retrieve the status. But I am trying to use my tenant and client id from that app registration that I have created. 

No RepliesBe the first to reply

Resources