Graph Explorer reports 'PresenceUnknown' but I'm Available in Teams

Charles Brereton 1 Reputation point
2021-02-10T14:05:02.663+00:00

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

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,492 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,820 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-02-11T18:39:14.3+00:00

    Ok, I tried repro the issue for a given user at my end. But i failed to repro the issue.
    Refer the snapshot:

    67151-image.png

    0 comments No comments

  2. Charles Brereton 1 Reputation point
    2021-02-15T09:51:06.763+00:00

    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}" } }

    0 comments No comments

  3. Charles Brereton 1 Reputation point
    2021-02-15T09:51:56.353+00:00

    sorry the presence query should read :

    https://graph.microsoft.com/v1.0/users/{manager's guid string}/presence


  4. Charles Brereton 1 Reputation point
    2021-02-20T21:44:01.397+00:00

    Thanks for your reply - is there something that my Office 365 admin support staff should be looking at, perhaps some programmatic access is disabled?


  5. Charles Brereton 1 Reputation point
    2021-03-02T13:49:39.58+00:00

    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