How to use Microsoft Graph to generate call queue reports for Teams

Jay Daniel 0 Reputation points
2025-02-10T19:24:43.15+00:00

i cannot generate the call queue /PSTN report in the Teams admin center i would like to use Microsoft Graph to generate for urgent use

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,831 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,006 questions
Microsoft Teams Phone
Microsoft Teams Phone
Teams Phone enables call-control and Private Branch Exchange (PBX) capabilities in the Microsoft 365 cloud with Microsoft Teams.
191 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,166 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Robin Sheng-MSFT 6,105 Reputation points Microsoft Vendor
    2025-02-11T02:34:00.96+00:00

    Hi @Jay Daniel

    To generate a call queue and PSTN report in the Microsoft Teams admin center, follow these steps:

    1. Sign in to the Microsoft Teams admin center using an administrator account.
    2. In the left column, select Analytics and Reports.
    3. In the usage reports page, you can find report options related to call queues and PSTN.
    4. Set the time range and other parameters for the report, and then click Generate Report.
    5. The generated report will be displayed on the page, and you can view the details.

    User's image

    If you want to use Microsoft Graph to generate call queue and PSTN reports for Teams, which is beyond the scope of our support, the following suggestions are for reference only:

    • Register an app: Register an app in Azure AD and grant it the required permissions, such as Calls.Read.All and CallRecords.Read.All.
    • Get an access token: Use the OAuth 2.0 flow to get an access token. You can use the Microsoft Identity platform library to simplify this process.
    • Call the Microsoft Graph API:
      • Get call records: Use the GET /communications/callRecords endpoint to get call records.
      • Get PSTN usage: Use the GET /reports/getPstnCalls endpoint to get PSTN usage reports.
    • Process and display the data: Process the acquired data and generate the report format you need.

    Ref: https://learn.microsoft.com/en-us/graph/reportroot-concept-overview

    https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0

    https://learn.microsoft.com/en-us/graph/teams-messaging-overview


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    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.