{"id":15046,"date":"2023-08-22T11:41:06","date_gmt":"2023-08-22T18:41:06","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=15046"},"modified":"2024-01-02T12:12:16","modified_gmt":"2024-01-02T20:12:16","slug":"send-microsoft-teams-activity-feed-notifications-using-resource-specific-content-permissions","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/send-microsoft-teams-activity-feed-notifications-using-resource-specific-content-permissions\/","title":{"rendered":"Send Teams activity notifications using new resource-specific consent permissions"},"content":{"rendered":"<p>Microsoft Teams <a href=\"https:\/\/learn.microsoft.com\/en-us\/microsoftteams\/platform\/tabs\/send-activity-feed-notification?tabs=desktop\">activity notifications<\/a> empower users to triage items that require their attention. You can use the activity <a href=\"https:\/\/learn.microsoft.com\/en-us\/graph\/api\/userteamwork-sendactivitynotification?view=graph-rest-1.0&amp;tabs=http\">notification APIs<\/a> in Microsoft Graph to extend this functionality to your apps. This allows your apps to provide richer experiences and better user engagement by keeping users up to date.<\/p>\n<p>On December 20, 2023, we are announcing general availability of <a href=\"https:\/\/learn.microsoft.com\/en-us\/microsoftteams\/platform\/graph-api\/rsc\/resource-specific-consent\"><strong>Resource-specific Consent (RSC)<\/strong><\/a><strong> permissions for notification APIs.<\/strong> RSC is an authorization framework built by Microsoft Teams and Microsoft identity platform that allows for granting scoped access to an app. <span class=\"TextRun Highlight SCXW245171542 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW245171542 BCX8\">The new <\/span><\/span><code><span class=\"TextRun Highlight SCXW245171542 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SpellingErrorV2Themed SCXW245171542 BCX8\">TeamsActivity.Send.User<\/span> <\/span><\/code><span class=\"TextRun Highlight SCXW245171542 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW245171542 BCX8\">permission <\/span><span class=\"NormalTextRun SCXW245171542 BCX8\">can be consented by the user to send <\/span><span class=\"NormalTextRun SCXW245171542 BCX8\">activity <\/span><span class=\"NormalTextRun SCXW245171542 BCX8\">notifications.<\/span><\/span><\/p>\n<h2>Activity notifications in Teams mobile<\/h2>\n<p><img decoding=\"async\" width=\"599\" height=\"600\" class=\"wp-image-15047 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-1.png\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-1.png 599w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-1-300x300.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-1-150x150.png 150w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-1-24x24.png 24w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-1-48x48.png 48w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-1-96x96.png 96w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/p>\n<h2>Activity notifications in Teams desktop<\/h2>\n<p><img decoding=\"async\" width=\"1200\" height=\"675\" class=\"wp-image-15048 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-2.png\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-2.png 1200w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-2-300x169.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-2-1024x576.png 1024w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2023\/08\/word-image-15046-2-768x432.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h2>Advantages of activity notifications<\/h2>\n<ul>\n<li>Activity notifications is a native Teams integration that brings user seamlessly into the Tab app, bringing additional user engagement from Activity to your app.<\/li>\n<li>Activity notifications come with an OS notification in Teams desktop and mobile clients, so that user attention is grabbed from the system pop-up and sound.<\/li>\n<li>Notifications content is highly customizable, allowing users to preview the summary of the notified events.<\/li>\n<li>You can deep link your app to a notification so that when a user selects the notification it increases user app engagement.<\/li>\n<\/ul>\n<p>If you have questions, please reach out to <a href=\"https:\/\/developer.microsoft.com\/graph\/support\">https:\/\/developer.microsoft.com\/graph\/support<\/a>.<\/p>\n<p>Thank you for using Microsoft Teams! Visit us at our <a href=\"https:\/\/developer.microsoft.com\/en-us\/microsoft-teams\" target=\"_blank\" rel=\"noopener\">Microsoft Teams Dev Center.<\/a><\/p>\n<p>Follow us on Microsoft 365 Developer (<a href=\"http:\/\/www.twitter.com\/microsoft365dev\">@Microsoft365Dev<\/a>) \/ Twitter for the latest news.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Provide richer experiences and better user engagement with activity notification APIs in Microsoft Graph.<\/p>\n","protected":false},"author":126340,"featured_media":15088,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,128],"tags":[],"class_list":["post-15046","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-teams"],"acf":[],"blog_post_summary":"<p>Provide richer experiences and better user engagement with activity notification APIs in Microsoft Graph.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/15046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/126340"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=15046"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/15046\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/15088"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=15046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=15046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=15046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}