Forum Discussion

tiklu ganguly's avatar
tiklu ganguly
Copper Contributor
Jun 11, 2020
Solved

Meeting created via Graph API is not applying global policy properly

Hi All,

      We needed to make sure that all external users when joining a meeting via meeting URL should be given the role of an attendee. I have run the following PowerShell command to set the policy

 

Set-CsTeamsMeetingPolicy -DesignatedPresenterRoleMode EveryoneInCompanyUserOverride -Identity Global

As a result at present if we are creating an MS Teams meeting via UI all external users are getting added as an "attendee", which is the expected behavior.

But if we are creating the meeting via Graph API using a code similar to -  

POST https://graph.microsoft.com/v1.0/me/onlineMeetings
Content-Type: application/json

{
  "startDateTime":"2019-07-12T14:30:34.2444915-07:00",
  "endDateTime":"2019-07-12T15:00:34.2464912-07:00",
  "subject":"User Token Meeting"
}

 And then when the external user is joining in via the meeting URL generated via the Graph API call he is by default given the "presenter" role and not the "attendee role as expected. Can you please help.

 

Thanks

Tiklu

 

  • Hi All,

           We were able to solve this by passing the id of the organizer like the one sample given below

    {
      "startDateTime":"2019-09-09T14:33:30.8546353-07:00",
      "endDateTime":"2019-09-09T15:03:30.8566356-07:00",
      "subject":"Application Token Meeting",
      "participants": {
        "organizer": {
          "identity": {
            "user": {
              "id": "550fae72-d251-43ec-868c-373732c2704f"
            }
          }
        }
      }
    }

    to get the id of the user you would need to query "/users" endpoint

    Thanks

    Tiklu

5 Replies

  • AmitG2050's avatar
    AmitG2050
    Copper Contributor

    when we hit on postman so we getting some error like this 

    "message error authenticating with resource" 

    Please help !

     

  • tiklu ganguly, Usually policies takes 24 hours to reflect. can you try it once after 24 hours from you actually set up policies. Let me know weather it worked for you.
    • tiklu ganguly's avatar
      tiklu ganguly
      Copper Contributor

      Hi All,

             We were able to solve this by passing the id of the organizer like the one sample given below

      {
        "startDateTime":"2019-09-09T14:33:30.8546353-07:00",
        "endDateTime":"2019-09-09T15:03:30.8566356-07:00",
        "subject":"Application Token Meeting",
        "participants": {
          "organizer": {
            "identity": {
              "user": {
                "id": "550fae72-d251-43ec-868c-373732c2704f"
              }
            }
          }
        }
      }

      to get the id of the user you would need to query "/users" endpoint

      Thanks

      Tiklu

  • tiklu ganguly's avatar
    tiklu ganguly
    Copper Contributor

    Hi All,

     

          Just to elaborate further. If we are creating the meeting via UI, all external users are getting added as an attendee. But if we are creating the meeting via Graph API the users are getting added as a normal "presenter" and not as an attendee. We have also tried using the Microsoft graph event API. And in that case, also the behavior is the same. 

     

    Thanks

    Tiklu

Resources