Ok, I tried repro the issue for a given user at my end. But i failed to repro the issue.
Refer the snapshot:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When using the Microsoft Graph Explorer to try out various Graph API functions, I find that my Presence is being incorrectly reported. The same issue occurs if I look for my manager's presence (having first obtained his id by searching his UPN). I'm logged into Teams desktop client and I am Available, but Graph explorer reports as follows:
Query: GET https://graph.microsoft.com/v1.0/users/me/presence
Response: OK - 200 - 249ms
JSON :
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('me')/presence/$entity",
"id": "me",
"availability": "PresenceUnknown",
"activity": "PresenceUnknown"
}
Any suggestions welcome!
Thanks
Ok, I tried repro the issue for a given user at my end. But i failed to repro the issue.
Refer the snapshot:
Hi @Deva-MSFT ,
thanks for your answer - unfortunately it's not consistent - I checked this morning and I can see that I am now Available. However, I can't read my manager's presence -
https://graph.microsoft.com/v1.0/users/{guid string}
- I can see my manager's infornation
https://graph.microsoft.com/v1.0/users/{guid string}.presence
- Not Found - 404 - 121ms
and:
"error": { "code": "UnknownError", "message": "", "innerError": { "date": "2021-02-15T09:43:49", "request-id": "{hex string}", "client-request-id": "{hex string}" } }
sorry the presence query should read :
https://graph.microsoft.com/v1.0/users/{manager's guid string}/presence
Thanks for your reply - is there something that my Office 365 admin support staff should be looking at, perhaps some programmatic access is disabled?
Hello Rama,
found that the query syntax was wrong - I had enclosed my manager's GUID string in curly brackets but it should just be between the two '/ ' characters i.e.
https://graph.microsoft.com/v1.0/users/<guid>/presence
thanks