Forum Discussion
Power Automate JSON add co-organizer
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"
}
]
}
}
- samb2180Jul 15, 2024Brass 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?- BBeck88Jul 15, 2024Copper Contributor
samb2180 I had been using Group 'Send an HTTP request V2' connector. I changed it to HTTP premium. Now I'm running into an issue with the Header in HTTP. I'm not sure what to enter for Authorization'. And I don't know if I need an app registration. Seems as if I do. I'll have to ask my engineer to do that since I don't have rights. Plus I realize I may not have everything correct in the Body.
- samb2180Jul 16, 2024Brass Contributor
Hi BBeck88,
The HTTP premium connector is commonly used for app permission, so you need to create the app in your azure admin portall and all the stuff to the get the bearer token. You can check here how to do it:
https://iamrehanmemon.medium.com/generate-authentication-bearer-token-in-power-automate-using-azure-app-registration-75fa1c6696ea
The others HTTP connectors available in Power Automate use delegated permissions. Note that not all the HTTP actions accept all the endpoints. The error you are getting is because the connector does not accept this graph endpoint.
You can try to use the HTTP request with Microsoft Entra ID (preauthrized) action (not sure if it will work). When you first time use this action, it will ask you for the Base Resource URL and the Microsoft Entra ID Resource URI. You can use https://graph.microsoft.com for both.