Share via

External User Presence in Teams via Graph API

Anonymous
2024-06-30T14:12:27+00:00

Hi Microsoft Community,

I've noticed something interesting about external user presence in Microsoft Teams, and I'm curious if anyone can shed some light on this.

When I search for external users (not in my organization) in the Teams app, I can often see their presence status - whether they're online, busy, away, etc.

But here's the puzzling part: when I try to get the same information through the Microsoft Graph API using the /presence endpoint, all I get is "PresenceUnknown" for these external users.

I'm wondering:

  1. Is this by design?
  2. Is there a way to get external users' presence via the Graph API that I'm missing?

Thanks in advance for any explanations or thoughts!

Microsoft Teams | Microsoft Teams for business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-06-30T14:44:25+00:00

    Hi Jasha_V,

    Thank you for reaching out. My name is Furkaan, a user just like you. I’d be happy to help you with your concerns. You're absolutely right! There's a current limitation with the Microsoft Graph API when it comes to external user presence in Teams.

    Here's a breakdown of your observations and the reasons behind them:

    Seeing External User Presence in Teams App:

    The Teams app can sometimes display presence information for external users. This functionality might leverage additional protocols beyond the core Graph API. "PresenceUnknown" for External Users in Graph API:

    Currently, the /presence endpoint in Microsoft Graph API with application permissions does not support retrieving presence data for external users. This is by design (Presence.Read or Presence.Read.All permissions) There are two things to consider:

    Permissions:

    Delegated permissions (Presence.Read or Presence.Read.All) only work for users within your own organisation who have signed in and consented to share their presence information. External Users:

    Due to privacy and security considerations, retrieving presence data for external users might not be fully supported through the Graph API yet. Here are some possibilities:

    It might be a limitation: External user presence retrieval through Graph API might not be currently available. Future Feature: Microsoft might be considering adding support for this functionality in the future.

    If you have any additional questions or concerns, please don’t hesitate to reach out. Give back to the Community. Help the next person who has this issue by indicating if this reply solved your problem. Click Yes or No below. Best Regards, Furkaan

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments