Graph API for MS Teams - Call Logs

David Jones 6 Reputation points
2021-11-01T10:08:05.6+00:00

Hi,

We'd like to archive our Teams call logs, as we are often asked for these but currently they are only saved for 30 days in the Teams Admin Console. We thought we might be able to use the Graph API to download Teams call logs for all of our users/tenant periodically. Is there currently support in the Graph API for accessing Teams call logs? Or is it road mapped for the future?

Many Thanks,

David

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,886 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Barry Gervin 91 Reputation points Microsoft Employee
    2022-01-12T21:35:29.547+00:00

    Hi David,

    Yes this is possible. Have you looked at cloud-communications-callrecords.

    Barry Gervin

    0 comments No comments

  2. David Jones 6 Reputation points
    2022-10-07T00:04:03.3+00:00

    Hi Barry,

    I managed to write a PowerShell script to do this via Graph API for external inbound/outbound calls.

    I can't see a method to do this with internal teams calls, intra-tenant. Is there a way?

    Thanks,


  3. Andrew Way 21 Reputation points
    2022-11-21T09:08:28.153+00:00

    I've been using the callrecords: getDirectRoutingCalls Graph API (https://learn.microsoft.com/en-us/graph/api/callrecords-callrecord-getdirectroutingcalls) to pull the call details into PowerBI. This works well, but doesn't appear to give any information about missed/abandoned calls. I can then use the session data API to pull details of each individual call, but this then takes a very long time to refresh the data and only really gives useful information if the call was sent to voicemail, if the user has voicemail turned off it doesn't seem to give missed/abandoned call info either.

    Unless I'm missing something, it would really be useful to see information about missed incoming calls when they're direct to users. The call queue API does have abandoned call info.

    Thanks,

    Andy