Forum Discussion
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
- samb2180Brass 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"
}
]
}
}- BBeck88Copper ContributorHi 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.
- samb2180Brass ContributorWhich 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?
- kalpeshvaghelaSteel Contributor
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
- jonlakeIron Contributor
kalpeshvaghela you can open a meeting from the Teams calendar then choose meeting options, from where you can add meeting co-organizers. I need to be able to do that using Power Automate, and likely JSON (which creates the meeting initially). Ideally I'd be able to create the event and set all options using a JSON post.
- kalpeshvaghelaSteel Contributor
According to Official documentation of Graph API, it's not possible to add multiple co-organizers while adding meeting or updating meeting using Graph API. It's not even possible with beta version of graph API.
- https://docs.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-beta&tabs=http
- Event JSON Object Schema - https://docs.microsoft.com/en-us/graph/api/resources/event?view=graph-rest-beta#properties - Here organizer is the single property where you can provide only one user.
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community