Forum Discussion

jonlake's avatar
jonlake
Iron Contributor
Sep 07, 2022

Power Automate JSON add co-organizer

Hi, I can create a Teams meeting using JSON and an Azure AD HTTP request but is it possible to add co-organizers as part of the request. I can't figure it out but hope someone can suggest a method.

Cheers, Jon

  • samb2180's avatar
    samb2180
    Brass Contributor

    jonlake yes, you can. Just use the onlinemeetings patch.

    PATCH /users/{userId}/onlineMeetings/{meetingId}

    Be sure to include the header Prefer: include-unknown-enum-members.

    The json should include the already existing attendees, including the new one.

    {
    "participants": {
    "attendees": [
    {
    "upn": "existingattendee1upn",
    "role": "attendee"
    },
    {
    "upn": "existingattendee2upn",
    "role": "attendee"
    },
    {
    "upn": "newcoorganizerupn",
    "role": "coorganizer"
    }
    ]
    }
    }

    • BBeck88's avatar
      BBeck88
      Copper Contributor
      Hi samb2180. I've been testing PATCH /users/{userId}/onlineMeetings/{meetingId}, but I keep getting this error - URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. I'm confused because you've explained its possible and MS Learn documents it here - https://learn.microsoft.com/en-us/graph/api/onlinemeeting-update?view=graph-rest-1.0&tabs=http. I wasn't sure if I entered the header in the correct area or what I have wrong. I put 'Prefer: include-unknown-enum-members' (with no '') in CustomHeader1 field. My URI is https://graph.microsoft.com/v1.0/users/<my userID>/onlineMeetings/<meetingID> (from dynamic content). I've been trying this with 'GET' but maybe that's what I'm doing wrong.
      • samb2180's avatar
        samb2180
        Brass Contributor
        Which action are you using? In my case I'm using the premium HTTP action with app permissions.

        Are you using the HTTP with Microsoft Entra ID connector?
  • jonlake 

     

    What do you mean by Co-Organizers? do you mean Required Attendees?

     

     

    It would be good if you can share some screen shot of your Power Automate to see which API you are using to creates Teams meetings

Resources