Is there any way to join meeting as organizer programatically

shreyas vartak 1 Reputation point
2021-10-13T07:06:20.253+00:00
  1. I have loged in via password grant to get access token.
  2. By using that access token i called /me/onlineMeetings api and i have get following response

Microsoft\Graph\Model\Event {#330 ▼

_propDict: array:30 [▼

"@odata.context" => "https://graph.microsoft.com/v1.0/$metadata#users('f65faf2d-7dac-4d93-b76e-acc432befbbc')/onlineMeetings/$entity"  
"id" => "MSpmNjVmYWYyZC03ZGFjLTRkOTMtYjc2ZS1hY2M0MzJiZWZiYmMqMCoqMTk6bWVldGluZ19OV1F3TTJWaFpUY3RaRGhoWkMwME9XVXdMV0l3Tm1JdE5XWTRZMlExWW1FNVl6Z3hAdGhyZWFkLnYy"  
"creationDateTime" => "2021-10-13T05:44:27.67798Z"  
"startDateTime" => "2021-10-13T11:10:34.2444915Z"  
"endDateTime" => "2021-10-13T11:15:34.2444915Z"  
"joinUrl" => "https://teams.microsoft.com/l/meetup-join/19%3ameeting_NWQwM2VhZTctZDhhZC00OWUwLWIwNmItNWY4Y2Q1YmE5Yzgx%40thread.v2/0?context=%7b%22Tid%22%3a%224596a53d-6734-492d-839c-890d1ab829ed%22%2c%22Oid%22%3a%22f65faf2d-7dac-4d93-b76e-acc432befbbc%22%7d ◀"  
"joinWebUrl" => "https://teams.microsoft.com/l/meetup-join/19%3ameeting_NWQwM2VhZTctZDhhZC00OWUwLWIwNmItNWY4Y2Q1YmE5Yzgx%40thread.v2/0?context=%7b%22Tid%22%3a%224596a53d-6734-49 ▶"  
"meetingCode" => null  
"subject" => "testing ms teams"  
"isBroadcast" => false  
"autoAdmittedUsers" => "organizerOnly"  
"outerMeetingAutoAdmittedUsers" => null  
"isEntryExitAnnounced" => true  
"allowedPresenters" => "everyone"  
"allowMeetingChat" => "enabled"  
"allowTeamworkReactions" => true  
"allowAttendeeToEnableMic" => true  
"allowAttendeeToEnableCamera" => true  
"recordAutomatically" => false  
"capabilities" => []  
"videoTeleconferenceId" => null  
"externalId" => null  
"broadcastSettings" => null  
"audioConferencing" => null  
"meetingInfo" => null  
"meetingAttendanceReport" => null  
"participants" => array:2 [▼  
  "organizer" => array:3 [▼  
    "upn" => "******@talgrodev.onmicrosoft.com"  
    "role" => "presenter"  
    "identity" => array:12 [▼  
      "acsUser" => null  
      "spoolUser" => null  
      "phone" => null  
      "guest" => null  
      "encrypted" => null  
      "onPremises" => null  
      "acsApplicationInstance" => null  
      "spoolApplicationInstance" => null  
      "applicationInstance" => null  
      "application" => null  
      "device" => null  
      "user" => array:4 [▼  
        "id" => "f65faf2d-7dac-4d93-b76e-acc432befbbc"  
        "displayName" => null  
        "tenantId" => "4596a53d-6734-492d-839c-890d1ab829ed"  
        "identityProvider" => "AAD"  
      ]  
    ]  
  ]  
  "attendees" => array:1 [▶]  
]  
"lobbyBypassSettings" => array:2 [▼  
  "scope" => "organizer"  
  "isDialInBypassEnabled" => false  
]  
"chatInfo" => array:3 [▼  
  "threadId" => "19:meeting_NWQwM2VhZTctZDhhZC00OWUwLWIwNmItNWY4Y2Q1YmE5Yzgx@thread.v2"  
  "messageId" => "0"  
  "replyChainMessageId" => null  
]  
"joinInformation" => array:2 [▼  
  "content" => "data:text/html,%3cdiv+style%3d%22width%3a100%25%3bheight%3a+20px%3b%22%3e%0d%0a++++%3cspan+style%3d%22white-space%3anowrap%3bcolor%3a%235F5F5F%3bopacity%3a.36%3 ▶"  
  "contentType" => "html"  
]  

]
}

  1. So when i am using join url from response, i have to log in manually for idetify user as organizer.

is there any way to get seperate url for organizer or do i login as organizer programatically?
i am accessing api in php via guzzle

I am sending bellow request

$newEvent = [
'subject' => $request->eventSubject,
'startDateTime' => '2021-10-13T11:10:34.2444915-00:00',
'endDateTime' => '2021-10-13T11:15:34.2444915-00:00',
// "externalId" => 'fksbfksnkfnwshfihsbfsbkfsskf',
"participants" => [
"organizer" => [
"identity" => [
"user" => [
'displayName' => 'shreyas vartak',
'id' => 'f65faf2d-7dac-4d93-b76e-acc432befbbc'
]
],
"upn"=> "******@talgrodev.onmicrosoft.com",
"role"=> "presenter"
],
"attendees" => [
[
"identity" => [
"user" => [
'displayName' => 'attendee1',
]
],
"upn"=> "attendee1@Stuff .com",
"role"=> "attendee"
]

        ]  
     ],  
     "lobbyBypassSettings" => [  
        "scope" => 'organizer',  
     ],  

  ];  
Microsoft Security | Microsoft Authenticator
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.