MS Graph API OnlineMeeting returns 403 Forbidden error

Rishma Chawla 76 Reputation points
2020-09-08T14:41:04.043+00:00

Hi team,
I am trying to implement ms graph api in my asp.net mvc c# web application. I have created Azure account and implemented login functionality. Now I am trying to integrate onlinemeeting functionality. I am testing api on postman and I am getting error 403 forbidden.
I got access token and it returns user information. I give permissions onlinemeeting.readwrite delegate. Please guide me how I can resolve this forbidden error. I have used below C# code to get Access token and Login :

string[] scopes = graphScopes.Split(' ');

            var result = await idClient.AcquireTokenByAuthorizationCode(  
                scopes, notification.Code).ExecuteAsync();  

            var userDetails = await GraphHelper.GetUserDetailsAsync(result.AccessToken);  

            tokenStore.SaveUserDetails(userDetails);  
            notification.HandleCodeRedemption(null, result.IdToken);  

--------------

It returns me Access Token. I used this access token in postman
23294-image.png

23312-image.png

23295-image.png

Please provide me code in c# to create Online Meeting, I have tried code given in Microsoft documents of Create meeting, but it doesn't work.
Please help me

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,614 questions
No comments
1 vote

Accepted answer
  1. soumi-MSFT 11,601 Reputation points Microsoft Employee
    2020-09-08T14:54:15.993+00:00

    @Rishma Chawla , thank you for reaching out. I worked on the same issue on one of the other threads. Can you please check the accepted answer of this thread: https://learn.microsoft.com/en-us/answers/questions/84732/getting-error-if-i-create-onlinemeeting.html?childToView=88829#answer-88829

    I too used Postman there and I mentioned all the points that need to be check while trying to call that api.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.

    No comments

1 additional answer

Sort by: Most helpful
  1. Rishma Chawla 76 Reputation points
    2020-09-08T15:26:09.97+00:00

    I have created two accounts in Azure, one is the main account and other is Co-Admin in that. In Co-Admin I have registered an App in that.
    23321-image.png

    23179-image.png

    I want to create meeting so that multiple people can join it. Also please confirm if I need to create more users in it. I mean how and who can join this meeting.