Graph API's filtering capabilities that allows messages to be retrieved only from the desired channel
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.