Getting Display Names For Teams Calls

Jon Wallace 6 Reputation points
2022-05-26T19:52:40.573+00:00

Hello,

I'm hoping someone can help or at least point me in the correct direction...

I'm currently utilizing the Microsoft Graph to get information pertaining to Microsoft Teams calls within my organization. I am mostly using the documentation here - https://learn.microsoft.com/en-us/graph/api/resources/callrecords-callrecord?view=graph-rest-1.0

Right now I have the following:

  1. I created an application within my Azure AD and assigned the relevant permissions (CallRecords.Read.All).
  2. I registered a subscription within said application to get callbacks whenever a call has been completed.

This all works fine. When a teams call is completed, around 15 minutes after, I get a hit from Microsoft with the relevant call ID.

Once I have the ID, I then make a call to /communications/callRecords/{id} to get the call data. Again this all works great.

Here is my issue:

When the call data is returned in response to my request, unless the user is part of my organization and is signed into the teams application, I do not get back their display name. I do see the display name populated for people within my organization who are signed into the app, but for all other users, I see either external user, guest, or unknown for the display name.

However, and this is what is frustrating...

If I go into the Microsoft teams dashboard (within the admin center), I can see all of the same calls that I have received callbacks for (and requested info on), but they have all of the display names showing. It would appear that there is more accurate information available to whatever API the dashboard is using, than what is available on the Microsoft graph API.

Am I using the correct API calls to pull back information on my teams calls when I get sent an ID from Microsoft?

Is there a reason why I can get all of the attendee display names within the teams dashboard, but I am not able to get them through the graph API?

Thanks in advance for any help or guidance.

Jon

Microsoft Teams Development
Microsoft Teams Microsoft Teams for business Other
{count} vote

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 3,991 Reputation points Microsoft External Staff Moderator
    2022-06-06T11:47:17.653+00:00

    We did not show display names for external users across all surfaces until fairly recently.

    Microsoft Q&A:

    Thanks,

    Sayali


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.