There is a filter we are using while setting up our ChangeNotifications to listen to Teams Messages, namely the search filter, this would allow us to listen to only notifications that we are interested in. This filter gives us all the recordings that happen in the chats and the channel messages.
We would like to confirm that this search
filter will be continued to be supported for the foreseeable future. We would also like to confirm that our application will be charged for only the filtered notification calls. The API calls to set up the Change Notifications are as followed:
Permission: ChannelMessage.Read.All
POST [https://graph.microsoft.com/v1.0/subscriptions]()
Content-Type: application/json
{
"changeType": "updated",
"notificationUrl": "{notificationUrl}",
"lifecycleNotificationUrl": "{lifeCycleNotificationUrl}",
"resource": "/teams/getAllMessages?$search=recording",
"includeResourceData": true,
"encryptionCertificate": "{base64encodedCertificate}",
"encryptionCertificateId": "{customId}",
"expirationDateTime": "{date}",
"clientState": "{secretClientState}"
}
Permission: Chat.Read.All
POST [https://graph.microsoft.com/v1.0/subscriptions]()
Content-Type: application/json
{
"changeType": "updated",
"notificationUrl": "{notificationUrl}",
"lifecycleNotificationUrl": "{lifeCycleNotificationUrl}",
"resource": "/chats/getAllMessages?$search=recording",
"includeResourceData": true,
"encryptionCertificate": "{base64encodedCertificate}",
"encryptionCertificateId": "{customId}",
"expirationDateTime": "{date}",
"clientState": "{secretClientState}"
}