Graph API not able to create online meeting on v1.0 and download attendance

Yuvaraja S S 0 Reputation points
2023-05-25T11:27:10.2933333+00:00

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"
        }
    }
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,288 questions
Microsoft Graph Calendar API
Microsoft Graph Applications API
Microsoft Graph Applications API
A Microsoft API that enables you to manage these resources and actions related to applications in Azure Active Directory.
559 questions
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
720 questions
Microsoft Graph Teamwork API
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 23,031 Reputation points
    2023-05-26T02:54:38.1266667+00:00

    Hi @Yuvaraja S S

    According to the docs:

    To use application permission for this API, tenant administrators must create an application access policy and grant it to a user to authorize the app configured in the policy to create online meetings on behalf of that user (with user ID specified in the request path).

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments