Fetch call recordings and metadata for a client

Kawaldeep Singh 0 Reputation points
2024-09-17T07:21:02.8033333+00:00

I have Microsoft Teams credentials, including the tenant ID of a company. They want us to extract call recordings and metadata for a specific group of users. Could you provide a workflow for this task? We need to ensure that only the specified group’s data is accessed, without being able to view or retrieve information from other group members.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,162 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,065 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.
3,287 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Robin Sheng-MSFT 3,130 Reputation points Microsoft Vendor
    2024-09-18T02:14:04.8233333+00:00

    Hi @Kawaldeep Singh

    Teams tag is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your question is not in our support scope. Thanks for your understanding and patience.

    The following suggestion is for your reference:

    1. Configure Teams admin policies: Make sure you have configured the appropriate call recording policies in the Microsoft Teams admin center or through PowerShell.
      • Using the Teams admin center: Sign in to the Microsoft Teams admin center. In the Voice section, select Call policies. Create or edit an existing policy, making sure Cloud Recording of Calls and Transcription are enabled. Assign the policy to specific user groups.
      • Using PowerShell:
             Set-CsTeamsCallingPolicy -Identity "PolicyName" -AllowCloudRecordingForCalls $true -AllowTranscriptionForCalling $true
             Grant-CsTeamsCallingPolicy -PolicyName "PolicyName" -Identity "UserGroup"
        
    2. Use the Microsoft Graph API to extract call recordings and metadata.
      • Get an access token: Sign in to the Azure portal and navigate to Azure Active Directory Register your app and get the client ID and client secret. Use the OAuth 2.0 flow to get an access token.
      • Extract call recordings and metadata: GET https://graph.microsoft.com/v1.0/communications/callRecords
    3. Restrict data access: Ensure that API requests are limited to data for specific user groups.
      • Use filter parameters to limit the scope of the request: GET https://graph.microsoft.com/v1.0/communications/callRecords $filter=participants/any(p:p/identity/user/id eq 'UserID')
      • In application permissions, grant access only to specific user groups.
    4. Data storage and processing: Store extracted data in a secure location and process and analyze as needed. Regularly review and update call recording policies and API permissions to ensure compliance with data privacy and compliance requirements.

    References: https://learn.microsoft.com/en-us/microsoftteams/export-teams-content


    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.



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.