microsoftgraph / msgraph-sdk-php

Microsoft Graph Library for PHP.
Other
566 stars 143 forks source link

get transcripts from onlineMeeting result in 404 not found with application rights #1245

Closed jeancharlesragons closed 1 year ago

jeancharlesragons commented 1 year ago

Hi,

We're using and old version, but every other graph call are working well

"microsoft/microsoft-graph": "v1.29.0",

we're trying to get transcript from onlinemeeting (beta calls), first we get an online meeting with that :

          $response = $graph->createRequest("get","/users/".$resourceId."/onlineMeetings?\$filter=JoinWebUrl eq '".$optionalIds['joinWebUrl']."'")
          ->addHeaders(array("Content-Type" => "application/json"))
          ->setReturnType(Model\OnlineMeeting::class)
          ->setTimeout("1000")
          ->execute();

which is working fine with our azure app, so we get the id, which is onlineMeeting id

but in the second step with the discovered onlineMeetingId, we've a 404 not found for getting the /transcripts

$response = $graph->createRequest("get","/users/".$resourceId."/onlineMeetings/".$optionalIds['onlineMeetingId']."/transcripts")
          ->addHeaders(array("Content-Type" => "application/json"))
          ->setTimeout("1000")
          ->execute();

but exactely the same call in graph explorer on the meeting organizer is working well, and give a result, and all other call (like getting an event, onlinemeeting) are working with our app / credentials.

the application rights for our azure app are that :

OnlineMeetingArtifact.Read.All
OnlineMeetings.Read.All
OnlineMeetingTranscript.Read.All
User.Read.All

And we declare the access policy on the tenant with that :

Install-Module -Name PowerShellGet -Force -AllowClobber
Install-Module -Name MicrosoftTeams -Force -AllowClobber
Connect-MicrosoftTeams
New-CsApplicationAccessPolicy -Identity test-transcripts -AppIds "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
Grant-CsApplicationAccessPolicy -PolicyName test-transcripts -Global

Any idea of what could cause this issue ?

jeancharlesragons commented 1 year ago

in case of, i'm trying here, not fully framework related https://learn.microsoft.com/en-us/answers/questions/1294112/get-transcripts-from-onlinemeeting-result-in-404-n

jeancharlesragons commented 1 year ago

Hi,

Somehow, the problem resolve from itself around June 13. we didn't change anything, and now we succeed to download vtt files, no 404 error anymore. As we are on a old version of the framework, we're using standard model Entity with setReturnType(Model\Entity::class)

Maybe the move to remove the support of doc file pushed a new version from graph side, anyway it's working :)