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.
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.