2

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!

matt sharp
  • 326
  • 3
  • 11

1 Answers1

1

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.

Allen Wu
  • 15,529
  • 1
  • 9
  • 20
  • Thanks so much for that, it is the access policy! There are a few further questions this raises for me tho: It would seem I have to run the command for each newly created Azure AD account (which I hope can be done in .NET on creation) and it doesn't seem to work for guest users. Do you know anything around these further issues? – matt sharp Nov 17 '20 at 08:32
  • 1
    @mattsharp Yes. you need to run the command for each account. I'm not sure if it works for guest users. Maybe it's related to O365 Teams license? – Allen Wu Nov 19 '20 at 05:28
  • Yeah I don't think it does work for guest users and running the command for each user is not what i have in mind :(. I've gone with events (create them as online meetings) which does what i need to do. Thanks for the response! – matt sharp Nov 19 '20 at 13:49