microsoftgraph / microsoftgraph/microsoft-graph-comms-samples

403 When creating group call with service hosted media

Open
#64 13 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
No language data
Stars
253
Forks
275
Avg merge
1d 5h
Merged PRs (30d)
1

Description

When attempting to create a group call with service hosted media, I receive a 403: Request authorization tenant mismatch.
Creating a regular call works fine.
Running a POST to the following URL:
https://graph.microsoft.com/beta/app/calls
I've essentially given all app permissions available to my test tenant to rule that out.
JWT Perms:
"roles": [
"Chat.UpdatePolicyViolation.All",
"Calls.JoinGroupCall.All",
"OnlineMeetings.Read.All",
"OnlineMeetings.ReadWrite.All",
"User.ReadWrite.All",
"Application.ReadWrite.OwnedBy",
"People.Read.All",
"Application.ReadWrite.All",
"Calls.InitiateGroupCall.All",
"Group.Read.All",
"Calls.JoinGroupCallAsGuest.All",
"Sites.Read.All",
"Sites.ReadWrite.All",
"Group.ReadWrite.All",
"Sites.Manage.All",
"User.Invite.All",
"User.Read.All",
"Chat.Read.All",
"ChannelMessage.Read.All",
"User.Export.All",
"Chat.ReadWrite.All",
"ChannelMessage.UpdatePolicyViolation.All",
"Member.Read.Hidden",
"Calls.AccessMedia.All",
"Sites.FullControl.All",
"Calls.Initiate.All"
],

Body:

{
     "subject": "Test Call123",
     "callbackUri": "https://url.ngrok.io/callback/calling",
     "source": {
     "identity": {
         "application": {
         "id": "appID"
         }
       }
     },  
     "targets": [
     {
         "identity": {
         "user": {
             "id": "userID",
             "displayName": "test name"
         }
       }
       },
       {
       "identity": {
         "user": {
             "id": "userID2",
             "displayName": "test name2"
         }
         }
     }   
     ],
     "requestedModalities": [ "audio" ],
     "mediaConfig": {
       "@odata.type": "#microsoft.graph.serviceHostedMediaConfig",
       "preFetchMedia": [
         {
           "uri": "https://cdn.contoso.com/beep.wav",
           "resourceId": "1D6DE2D4-CD51-4309-8DAA-70768651088E"
         },
         {
           "uri": "https://cdn.contoso.com/cool.wav",
           "resourceId": "1D6DE2D4-CD51-4309-8DAA-70768651088F"
         }
       ]
     },
     "chatInfo": {
       "threadId": "19:meeting_aergaergOTdlMjY0YTFiNTA0@thread.v2",
       "messageId": "0",
       "replyChainMessageId": null
     }
   
   }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the POST to https://graph.microsoft.com/beta/app/calls using the supplied request body and JWT roles, then compare it with the regular-call request that succeeds. Focus on the serviceHostedMediaConfig and tenant context; done means identifying the cause of the 403 tenant mismatch and documenting a verified request or configuration that succeeds.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.