Search code examples
azure-active-directorymicrosoft-graph-apimicrosoft-teamsmicrosoft-graph-calendar

How can I create online meetings/events for non Azure AD users?


Essentially what I want is a website where the user doesn't have to be an member of my Azure AD, just wants access to a new online meeting/event. I also need to be able to create an online meeting or event link on behalf of my application (NOT the user)

I have set up a registered app on Azure that has the following permissions for the application: enter image description here

Am I able to create an online meeting/event for this application or does it HAVE to be on a users behalf?

I know I have to use the following:

graphServiceClient.Users["{user id/upn}"].OnlineMeetings.Request().AddAsync(onlineMeeting).GetAwaiter().GetResult();

If it is possible to create on behalf of the application, then what would the user email be? - admin email?

Any help on understanding this would be greatly appreciated!


Solution

  • You can create an online meeting using Application permission with Microsoft Graph Beta version: Create onlineMeeting.

    V1.0 version doesn't support Application permission.

    Please note that Application permission also creates the online meeting on behalf a user because the user ID specified in the request path is necessary.

    Based on the Important tip here, you also must create an application access policy to allow applications to access online meetings on behalf of a user.

    The user email id should be configured in the policy Grant-CsApplicationAccessPolicy.