Share via

Questions about generating meeting

Yuriy Parashchak 0 Reputation points
2023-06-22T11:40:07.42+00:00

I need to create a server-side application that will create a meeting on behalf of the program itself (not delegated, but authentication only in the program). For this, I registered at https://portal.azure.com/ In Azure Active Directory, I chose App registrations and created a new program with the account type Accounts only in this organizational catalog (only Catalog by default — one client). On the edit screen of the new program, I went to API permissions and pressed Microsoft Graph and added OnlineMeetings.ReadWrite.All and User.Read.All for program permissions, went back to the API permissions screen, and pressed Grant admin consent. I created a new client secret in Certificates and secrets. To receive a token, I use a post request https://login.microsoftonline.com/02cbf2ff-553d-40c5-8ef3-2904824a1688/oauth2/token, for this request I receive { “token_type”: “Bearer”, “expires_in”: “3599", “ext_expires_in”: “3599", “expires_on”: “1687428733", “not_before”: “1687424833", “resource”: “https://graph.microsoft.com”, “access_token”: “{access_token}” } Then I try to create a meeting using a post request https://graph.microsoft.com/v1.0/users/3fc50c3a-881a-4980-a33d-adcb90474a62/onlineMeetings In the header, I specify Authorization : Bearer {the token I received above} Content-Type: application/json In response, I get { “error”: { “code”: “General”, “message”: “No Application Access Policy found for this app.“, “innerError”: { “request-id”: “ddc99409-00e6-4332-98ee-3755686f64e1”, “date”: “2023-06-22T09:11:25”, “client-request-id”: “ddc99409-00e6-4332-98ee-3755686f64e1” } } }

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-06-22T14:30:27.43+00:00

    Hello Yuriy Parashchak,

    Thanks for reaching out. If you attempt an API call to access an online meeting or virtual event without configuring the application access policy, you might encounter the error your received. You will need to create an application access policy for the registered app. Please refer to the article for more information on this topic.

    https://learn.microsoft.com/en-us/graph/cloud-communication-online-meeting-application-access-policy

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

    Thanks.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.