I am trying to use Graph API to create a online meeting with Application token generated. I need to create a meeting, then download attendance report. Please help on it
With App token generated, I am able to create meeting on
https://graph.microsoft.com/beta/communications/onlineMeetings
But start time and end time are not set. its
"startDateTime": "0001-01-01T00:00:00Z",
"endDateTime": "0001-01-01T00:00:00Z"
But I am trying same on v1.0 But getting bad request error,
https://graph.microsoft.com/v1.0/communications/onlineMeetings
Body:
{
"startDateTime": "2023-05-26T14:30:00.0000000+00:00",
"endDateTime": "2023-05-26T15:00:00.0000000+00:00",
"subject": "Test subject",
"participants": {
"organizer": {
"identity": {
"user": {
"id": "user id"
}
}
}
}
}
Response received as:
{
"error": {
"code": "BadRequest",
"message": "An error has occurred.",
"innerError": {
"date": "2023-05-25T10:57:30",
"request-id": "ddb3910e-a325-4aef-8f49-013aba2fcbd6",
"client-request-id": "ddb3910e-a325-4aef-8f49-013aba2fcbd6"
}
}
}
With application token, I tried to call this users api with user id,
https://graph.microsoft.com/v1.0/users/{userid}/onlineMeetings
Getting response as
{
"error": {
"code": "General",
"message": "No Application Access Policy found for this app.",
"innerError": {
"request-id": "f5c44ca9-f9f0-4904-9019-96810df0abdc",
"date": "2023-05-25T10:59:10",
"client-request-id": "f5c44ca9-f9f0-4904-9019-96810df0abdc"
}
}
}