MS Teams change notifications chat/channel message filter condition for recordings

Mohit Khotani 20 Reputation points
2023-08-16T11:17:40.5066667+00:00

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}"
}
Microsoft Teams | Development
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. TH-4749-MSFT 3,315 Reputation points
    2023-08-16T13:54:35.3233333+00:00

    Hi Mohit Khotani,

    Thanks for reaching out. There is no way to confirm if a feature will be removed in the future you can check the Microsoft Graph Change Log portal for information on changes and additions to Graph API.

    You will be charged for filtered and non-filtered calls for change notification resources that support the payment model. Please refer to article for more information on the topic.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.


0 additional answers

Sort by: Most helpful

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.