Missing role permissions on the request. API requires one of 'OnlineMeetingRecording.Read.All, OnlineMeetingRecording.Read.Chat'. Roles on the request

Ankitash Tulyani 20 Reputation points
2023-08-18T04:25:00.6133333+00:00
{
    "error": {
        "code": "Forbidden",
        "message": "Missing role permissions on the request. API requires one of 'OnlineMeetingRecording.Read.All, OnlineMeetingRecording.Read.Chat'. Roles on the request ''. Resource specific consent grants on the request ''.",
        "innerError": {
            "date": "2023-08-18T04:11:11",
            "request-id": "8806f278-d8bc-47fd-b421-c88a03cb51ca",
            "client-request-id": "8806f278-d8bc-47fd-b421-c88a03cb51ca"
        }
    }
}

https://graph.microsoft.com/beta//users/[user-id]/onlineMeetings/[meeting-id]/recordings 
I am uisng microsoft graph api for getting the meeting recording information. But always it's retun forbidden response.

Anyone can you please suggest me to the grant role permission for 'OnlineMeetingRecording.Read.All, OnlineMeetingRecording.Read.Chat'. Where i can set this permission.

NOTE: I already set the permission on azure app registration app in **API permissions** in Microsoft Graph Request API permissions. 

I am uisng with http client to this api.
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
Developer technologies | C#
{count} votes

Your answer

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