Graph API's filtering capabilities that allows messages to be retrieved only from the desired channel

Mina 10 Reputation points
2023-05-29T11:56:36.1866667+00:00

I am looking into how to grant Microsoft Graph access to retrieve specific channel information in Microsoft Teams.

We are looking at ways to restrict access to specific channels. By default, I believe the "ChannelMessage.Read.All" permission provides access to all channel messages. However, if we want to restrict access to specific channels, I have heard that this can be accomplished by requiring additional logic to be implemented within the application. Specifically, I was told that by using the filtering functionality of the Graph API, it is possible to retrieve only messages from the required channels. However, I am having trouble understanding exactly how to use this filtering function.

Please tell me the specific command to use the filtering function using Graph API PowerShell.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,436 questions
{count} vote