How to grant access to Microsoft Graph to get only specific channel information for Microsoft Teams
I am investigating how to run the authentication command "Connect-MgGraph -Scopes ChannelMessage.Read.All" in PowerShells to get information only for channels within a specific team.
I have been informed that by using the filtering function of the Graph API, it is possible to control access to only the channels we need, but I am not sure how to do this specifically.
In my research, I found the following URL, is this the correct procedure?
1.URL (Configure required Azure AD Graph permissions for an app registration)
2.URL(Resource-specific consent for your Teams app)
https://learn.microsoft.com/en-ca/microsoftteams/platform/graph-api/rsc/resource-specific-consent
Please help me.