How to grant access to Microsoft Graph to get only specific channel information for Microsoft Teams

Mina 15 Reputation points
2023-06-15T23:29:55.7333333+00:00

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)

https://learn.microsoft.com/en-ca/graph/migrate-azure-ad-graph-configure-permissions?tabs=powershell%2Cupdatepermissions- azureadgraph-powershell#option-3-use-the-microsoft-graph-api

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.

Microsoft Security | Microsoft Graph
0 comments No comments
{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.