How to get the Microsoft Teams call transcript of another tenant

Lukas 0 Reputation points
2023-11-29T15:30:16.9966667+00:00

I have to get the Microsoft Teams call recording or transcript of different tenants.

As I assume the meeting link itself is not sufficient I assume each tenant needs to add an azure application for this purpose which is allowed to get the call transcript from a permission level.

Is there a way to setup this application automatically?

Is my approach in general the way to go?

Thank you for your feedback

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,704 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,366 Reputation points
    2023-11-30T08:03:21.8633333+00:00

    Hi @Lukas

    You don't need to create a new app for each tenant. You can configure your app as a multi-tenant app and use users from different tenants to log in to your multi-tenant app to request an access token, and then call the graph API to get the Microsoft Teams call records or transcripts for the corresponding tenant.

    User's image

    Change /{tenant id} to /common when logging in.

    GET https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
    client_id=xxxxxxxxx
    &response_type=code
    &redirect_uri=xxxxxxxxxx
    &response_mode=query
    &scope=OnlineMeetingRecording.Read.All OnlineMeetingTranscript.Read.All
    &state=12345
    

    Redeem the access token using the authorization code:

    POST https://login.microsoftonline.com/common/oauth2/v2.0/token
    Content-Type: application/x-www-form-urlencoded
    
    client_id=xxxxxxxxx
    &scope=OnlineMeetingRecording.Read.All OnlineMeetingTranscript.Read.All
    &code=OAAABAAAAiL9Kn2Z27UubvWFPbm0gLWQJVzCTE9UkP3pSx1aXxUjq3n8b2JRLk4OxVXr...
    &redirect_uri=xxxxxxxxx
    &grant_type=authorization_code
    &client_secret=xxxxxxxxxxx 
    

    Hope this helps.

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


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.