'Creating online meetings in MS Teams using Graph API - Improve user experience when asking the admin to create an application access policy

I am working on a project, as part of which I need to

  1. Register an app on the Azure portal.

  2. Get consent from the user(administrator) for my app. (https://docs.microsoft.com/en-us/graph/auth-v2-service)

  3. One of the permissions for our app is creating online meetings on behalf of an user. This page clearly mentions that to use application permission for this API, tenant administrators must create an application access policy and grant it to a user to authorise the app configured in the policy to create online meetings on behalf of that user.

To create an application access policy the tenant administrator needs to sign in to Microsoft powershell (command-line shell) and run few commands. This part is something for which I want to provide a good user experience.

  1. Can I automate this? There is no documentation to know which endpoint to call to sign into Microsoft powershell from another page.
  2. Any suggestions for a good UI flow?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source