Skip to content

Instantly share code, notes, and snippets.

@gshahbazian
Last active February 11, 2021 19:03
Show Gist options
  • Save gshahbazian/cbb4156d69a38786c439c81480d351ca to your computer and use it in GitHub Desktop.
Save gshahbazian/cbb4156d69a38786c439c81480d351ca to your computer and use it in GitHub Desktop.
Graph API Curls
// Showing folder ids. Note inbox and Gabe's Folder.
$ curl --request GET \
--url 'https://graph.microsoft.com/v1.0/me/mailFolders' \
--header 'Authorization: Bearer ___' \
--header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3542 100 3542 0 0 25120 0 --:--:-- --:--:-- --:--:-- 25120
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('f2114cdc-2b43-4f2c-9461-897be3361582')/mailFolders",
"value": [
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAFMAAA=",
"displayName": "Archive",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 0,
"totalItemCount": 5,
"sizeInBytes": 702154
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAFFAAA=",
"displayName": "Conversation History",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 1,
"unreadItemCount": 0,
"totalItemCount": 0,
"sizeInBytes": 0
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEKAAA=",
"displayName": "Deleted Items",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 18,
"totalItemCount": 24,
"sizeInBytes": 2514164
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEPAAA=",
"displayName": "Drafts",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 0,
"totalItemCount": 0,
"sizeInBytes": 0
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAASGug5AAA=",
"displayName": "Gabe's Folder",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 42,
"totalItemCount": 52,
"sizeInBytes": 9529687
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEMAAA=",
"displayName": "Inbox",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 12433,
"totalItemCount": 12535,
"sizeInBytes": 2095382492
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEWAAA=",
"displayName": "Junk Email",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 38,
"totalItemCount": 38,
"sizeInBytes": 19770006
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAELAAA=",
"displayName": "Outbox",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 0,
"totalItemCount": 0,
"sizeInBytes": 0
},
{
"id": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEJAAA=",
"displayName": "Sent Items",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEIAAA=",
"childFolderCount": 0,
"unreadItemCount": 0,
"totalItemCount": 87,
"sizeInBytes": 5206630
}
]
}
// Message state before moving
$ curl --request GET \
--url 'https://graph.microsoft.com/v1.0/me/messages/AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA' \
--header 'Authorization: Bearer ___' \
--header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7781 100 7781 0 0 16109 0 --:--:-- --:--:-- --:--:-- 16076
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('f2114cdc-2b43-4f2c-9461-897be3361582')/messages/$entity",
"@odata.etag": "W/\"CQAAABYAAAD8fsVbEwwTQY96LFxj9GwaAAAkty69\"",
"id": "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA",
"createdDateTime": "2021-02-10T08:32:37Z",
"lastModifiedDateTime": "2021-02-11T18:28:30Z",
"changeKey": "CQAAABYAAAD8fsVbEwwTQY96LFxj9GwaAAAkty69",
"categories": [],
"receivedDateTime": "2021-02-10T08:32:38Z",
"sentDateTime": "2021-02-10T08:32:31Z",
"hasAttachments": false,
"internetMessageId": "<1ec5807dedaa4e0daf4cbfd024ee1b88-JFBVALKQOJXWILKCJQZFA7CPGM3DKTLFONZWCZ3FINSW45DFOJ6E2ZLTONQWOZKDMVXHIZLSL5GUGMRTHA3TSNL4KNWXI4A=@microsoft.com>",
"subject": "Message Center Major Change Update Notification",
"bodyPreview": "Align the experience for creating a team from different Teams interfaces\r\nMC238795 · SUPERHUMAN\r\n\r\nThis update brings consistency in user experience for teams created via the Teams admin center and those created via Teams clients (desktop and web).\r\n\r\nKey",
"importance": "normal",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEMAAA=",
"conversationId": "AAQkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAQAHIaUxM6c_NMrYbLTdGPbM8=",
"conversationIndex": "AQHW/4dJchpTEzpz40ythstN0Y9szw==",
"isDeliveryReceiptRequested": null,
"isReadReceiptRequested": false,
"isRead": true,
"isDraft": false,
"webLink": "https://outlook.office365.com/owa/?ItemID=AAkALgAAAAAAHYQDEapmEc2byACqAC%2FEWg0A%2FH7FWxMME0GPeixcY%2FRsGgAAIyTshAAA&exvsurl=1&viewmodel=ReadMessageItem",
"inferenceClassification": "focused",
"body": {
"contentType": "html",
"content": "<html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><meta content=\"text/html; charset=utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><meta content=\"IE=edge\"><style>\r\n<!--\r\nbody, table, td\r\n\t{font-family:Segoe UI,Helvetica,Arial,sans-serif!important}\r\na\r\n\t{color:#006CBE;\r\n\ttext-decoration:none}\r\n-->\r\n</style></head><body><div style=\"background:white; min-height:100vh; color:#323130; font-size:14px\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\"><tbody><tr><td></td><td width=\"640\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"min-width:100%; background:white\"><tbody><tr><td style=\"padding:24px 24px 45px\"><img src=\"https://eus-contentstorage.osi.office.net/images/retailer.images/centralizeddeployment/logos/112fec798b78aa02.png\" width=\"100\" height=\"21\" alt=\"Microsoft\"> </td></tr><tr><td style=\"font-size:28px; padding:0 24px; font-weight:bold; color:#000000\">Align the experience for creating a team from different Teams interfaces</td></tr><tr><td style=\"color:#323130; padding:20px 24px 40px 24px\"><span style=\"font-weight:600\">MC238795 · SUPERHUMAN</span></td></tr><tr><td style=\"padding:0 24px 44px\"><div><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\" style=\"font-size:100%; font-family:Segoe UI light\"><p style=\"margin-top:0\">This update brings consistency in user experience for teams created via the Teams admin center and those created via Teams clients (desktop and web).<p></p><p><b style=\"font-weight:600\">Key points</b></p><ul><li>Microsoft 365 <a href=\"https://www.microsoft.com/microsoft-365/roadmap?filters=&amp;searchterms=70696\" target=\"_blank\">Roadmap ID 70696</a></li><li>Timing: mid-March 2021</li><li>Roll-out: tenant level </li><li>Control type: admin control</li><li>Action: review and assess by March 15, 2021</li></ul><p><b style=\"font-weight:600\">How this will affect your organization</b></p><p>For new teams created via Teams admin center after this update:</p><ul><li>Teams will send Welcome emails to new members rather than Group welcome emails.</li><li>Members of the new team will not receive updates for events scheduled in the group calendar.</li><li>Unlike current teams created in the Teams admin center, after this change new teams will be hidden in Outlook experiences:<ul><li>The new team will not be displayed in Outlook clients, such as Outlook for Windows and Outlook on the web.</li><li>The new team will not be displayed in the Outlook Address Book; in address lists for selecting message recipients; or in the Browse Groups dialog when searching groups.</li></ul></li></ul><p><b style=\"font-weight:600\">What you need to do to prepare</b></p><p>Should you wish to continue having the current user experience for teams that are created in the Teams admin center, we recommend using the Groups Graph API to create teams.</p><p>You might want to notify your Teams admins about this change and update your training and documentation as appropriate.&nbsp;</p><p><b>Learn more:</b> <a href=\"https://docs.microsoft.com/microsoftteams/create-an-org-wide-team\" target=\"_blank\">Create an org-wide team in Microsoft Teams</a></p><p></p></p></table></div><div style=\"padding-top:3px\"><a href=\"https://admin.microsoft.com/AdminPortal/home?ref=MessageCenter&amp;id=MC238795&amp;MCLinkSource=MajorUpdate\" title=\"view message\" target=\"_blank\">View this message in the Microsoft 365 admin center</a> </div></td></tr><tr><td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"min-width:100%; background-color:#F3F2F1\"><tbody><tr><td style=\"padding:44px 24px 3px; font-size:10px; color:#484644\">You're subscribed to this email using gabe@superhuman.dev. If you're an IT admin, you're subscribed by default, but you can <a href=\"https://admin.microsoft.com/adminportal/home?ref=MessageCenter&amp;showPref=1\" target=\"_blank\">unsubscribe at any time</a>. If you're not an IT admin, ask your admin to remove your email address from Microsoft 365 message center preferences.<br><br><a href=\"https://docs.microsoft.com/en-us/microsoft-365/admin/manage/language-translation-for-message-center-posts?view=o365-worldwide\" target=\"_blank\">How to view translated messages</a><br></td></tr><tr><td style=\"padding:25px 24px 24px; font-size:12px\"><a href=\"https://go.microsoft.com/fwlink/?LinkId=521839\" target=\"_blank\" style=\"color:#696969; text-decoration:underline; text-decoration-color:#696969\">Privacy statement</a> <div style=\"color:#696969; margin-top:10px; margin-bottom:13px\">Microsoft Corporation, One Microsoft Way, Redmond WA 98052 USA</div><img src=\"https://eus-contentstorage.osi.office.net/images/retailer.images/centralizeddeployment/logos/112fec798b78aa02.png\" width=\"94\" height=\"20\" alt=\"Microsoft\"> </td></tr></tbody></table></td></tr></tbody></table></td><td></td></tr></tbody></table></div><img src=\"https://mucp.api.account.microsoft.com/m/v2/v?d=AIAAC3FIGDQ3H6WN6JYFAGLAII2DA2AOUJBT2PYLD632YG2RNGLKMYYO3K7AFETAZOBXWZKMEBEOSKPLJKYSGCJTYHNVKJ2SQ2D6SDFJQSTZ5ANI7PF5C25WI7FLU4NMWS4CYZGDFQIDJWU3WPSWKZYRWXVK2TA&amp;i=AIAAC5XM2Y6XZT6KM4WQRLHLBIYETGVVQLVEHFSIVVL5LTQLBFXEEGJ2QE63DBCLZA32TBYIBCD46HRHDK673N5FXCV257JFJ6FJSVMHOQO4JGTGQRCUFMGCKDC4UKALWPPPI4IPD34E6AN5APVKXBLQ4Y7SZGMBAV6VGZ22QS2F5MNOJGBIAGNEXJOXO6XKRPGFBPVMOJGJ2JYW7A4DWKQPRS24HF42DJ3AFBFZOGIXE3JSQD4DIG3JC7IJSXCEFFVWZJGF4IKTP764EACRSSAPCBIXHKQ\" width=\"1\" height=\"1\" tabindex=\"-1\" aria-hidden=\"true\" alt=\"\"> </body></html>"
},
"sender": {
"emailAddress": {
"name": "Microsoft 365 Message center",
"address": "o365mc@microsoft.com"
}
},
"from": {
"emailAddress": {
"name": "Microsoft 365 Message center",
"address": "o365mc@microsoft.com"
}
},
"toRecipients": [
{
"emailAddress": {
"name": "Gabe Shahbazian",
"address": "gabe@superhuman.dev"
}
}
],
"ccRecipients": [],
"bccRecipients": [],
"replyTo": [],
"flag": {
"flagStatus": "complete",
"completedDateTime": {
"dateTime": "2021-02-10T08:00:00.0000000",
"timeZone": "UTC"
}
}
}
// Inbox delta response before moving
$ curl --request GET \
--url 'https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdINObMeTZQLM3iBJ1w51ZqtIKX9syeBRc1GhJ3ub4LaOS4vpavypZKsq1rMxlgmkaUK2yIPJZN7tSTOfcrTn1rGyMoZM_ttNs4bbHCn2P2b2D.iy364WGgiQjqcyPvGTiLP9ROwVZ4K1PWfSftksBZOJ0' \
--header 'Authorization: Bearer ___' \
--header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 369 100 369 0 0 2460 0 --:--:-- --:--:-- --:--:-- 2460
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(message)",
"@odata.deltaLink": "https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdINObMeTZQLM3iBJ1w51ZqtIKX9syeBRc1GhJ3ub4LaOS4vpavypZKsq1rMxlgmkaUK2yIPJZN7tSTOfcrTn1rGyMoZM_ttNs4bbHCn2P2b2D.iy364WGgiQjqcyPvGTiLP9ROwVZ4K1PWfSftksBZOJ0",
"value": []
}
// Inbox delta response after moving message into Gabe's Folder
$ curl --request GET --url 'https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdINObMeTZQLM3iBJ1w51ZqtIKX9syeBRc1GhJ3ub4LaOS4vpavypZKsq1rMxlgmkaUK2yIPJZN7tSTOfcrTn1rGyMoZM_ttNs4bbHCn2P2b2D.iy364WGgiQjqcyPvGTiLP9ROwVZ4K1PWfSftksBZOJ0' --header 'Authorization: Bearer ___' --header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 519 100 519 0 0 2836 0 --:--:-- --:--:-- --:--:-- 2820
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(message)",
"@odata.deltaLink": "https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdINObMeTZQLM3iBJ1w51ZqtIKX9syeBRc1GhJ3ub4LaOS4vpavypZKsq1rMxlgmkaUOipxFe87SHxAf9l2aJhL-RoHyVofwJWkPeKVQA28UIZ.l3PRDK5jrwqkbJPuFn9hl9Nv3jHE-V9EdavSMzkqEvc",
"value": [
{
"@odata.type": "#microsoft.graph.message",
"id": "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA",
"@removed": {
"reason": "deleted"
}
}
]
}
// Message state after moving message into Gabe's Folder
$ curl --request GET \
--url 'https://graph.microsoft.com/v1.0/me/messages/AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA' \
--header 'Authorization: Bearer ___' \
--header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7781 100 7781 0 0 22685 0 --:--:-- --:--:-- --:--:-- 22619
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('f2114cdc-2b43-4f2c-9461-897be3361582')/messages/$entity",
"@odata.etag": "W/\"CQAAABYAAAD8fsVbEwwTQY96LFxj9GwaAAAkty7E\"",
"id": "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA",
"createdDateTime": "2021-02-10T08:32:37Z",
"lastModifiedDateTime": "2021-02-11T18:30:29Z",
"changeKey": "CQAAABYAAAD8fsVbEwwTQY96LFxj9GwaAAAkty7E",
"categories": [],
"receivedDateTime": "2021-02-10T08:32:38Z",
"sentDateTime": "2021-02-10T08:32:31Z",
"hasAttachments": false,
"internetMessageId": "<1ec5807dedaa4e0daf4cbfd024ee1b88-JFBVALKQOJXWILKCJQZFA7CPGM3DKTLFONZWCZ3FINSW45DFOJ6E2ZLTONQWOZKDMVXHIZLSL5GUGMRTHA3TSNL4KNWXI4A=@microsoft.com>",
"subject": "Message Center Major Change Update Notification",
"bodyPreview": "Align the experience for creating a team from different Teams interfaces\r\nMC238795 · SUPERHUMAN\r\n\r\nThis update brings consistency in user experience for teams created via the Teams admin center and those created via Teams clients (desktop and web).\r\n\r\nKey",
"importance": "normal",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAASGug5AAA=",
"conversationId": "AAQkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAQAHIaUxM6c_NMrYbLTdGPbM8=",
"conversationIndex": "AQHW/4dJchpTEzpz40ythstN0Y9szw==",
"isDeliveryReceiptRequested": null,
"isReadReceiptRequested": false,
"isRead": true,
"isDraft": false,
"webLink": "https://outlook.office365.com/owa/?ItemID=AAkALgAAAAAAHYQDEapmEc2byACqAC%2FEWg0A%2FH7FWxMME0GPeixcY%2FRsGgAAIyTshAAA&exvsurl=1&viewmodel=ReadMessageItem",
"inferenceClassification": "focused",
"body": {
"contentType": "html",
"content": "<html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><meta content=\"text/html; charset=utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><meta content=\"IE=edge\"><style>\r\n<!--\r\nbody, table, td\r\n\t{font-family:Segoe UI,Helvetica,Arial,sans-serif!important}\r\na\r\n\t{color:#006CBE;\r\n\ttext-decoration:none}\r\n-->\r\n</style></head><body><div style=\"background:white; min-height:100vh; color:#323130; font-size:14px\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\"><tbody><tr><td></td><td width=\"640\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"min-width:100%; background:white\"><tbody><tr><td style=\"padding:24px 24px 45px\"><img src=\"https://eus-contentstorage.osi.office.net/images/retailer.images/centralizeddeployment/logos/112fec798b78aa02.png\" width=\"100\" height=\"21\" alt=\"Microsoft\"> </td></tr><tr><td style=\"font-size:28px; padding:0 24px; font-weight:bold; color:#000000\">Align the experience for creating a team from different Teams interfaces</td></tr><tr><td style=\"color:#323130; padding:20px 24px 40px 24px\"><span style=\"font-weight:600\">MC238795 · SUPERHUMAN</span></td></tr><tr><td style=\"padding:0 24px 44px\"><div><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\" style=\"font-size:100%; font-family:Segoe UI light\"><p style=\"margin-top:0\">This update brings consistency in user experience for teams created via the Teams admin center and those created via Teams clients (desktop and web).<p></p><p><b style=\"font-weight:600\">Key points</b></p><ul><li>Microsoft 365 <a href=\"https://www.microsoft.com/microsoft-365/roadmap?filters=&amp;searchterms=70696\" target=\"_blank\">Roadmap ID 70696</a></li><li>Timing: mid-March 2021</li><li>Roll-out: tenant level </li><li>Control type: admin control</li><li>Action: review and assess by March 15, 2021</li></ul><p><b style=\"font-weight:600\">How this will affect your organization</b></p><p>For new teams created via Teams admin center after this update:</p><ul><li>Teams will send Welcome emails to new members rather than Group welcome emails.</li><li>Members of the new team will not receive updates for events scheduled in the group calendar.</li><li>Unlike current teams created in the Teams admin center, after this change new teams will be hidden in Outlook experiences:<ul><li>The new team will not be displayed in Outlook clients, such as Outlook for Windows and Outlook on the web.</li><li>The new team will not be displayed in the Outlook Address Book; in address lists for selecting message recipients; or in the Browse Groups dialog when searching groups.</li></ul></li></ul><p><b style=\"font-weight:600\">What you need to do to prepare</b></p><p>Should you wish to continue having the current user experience for teams that are created in the Teams admin center, we recommend using the Groups Graph API to create teams.</p><p>You might want to notify your Teams admins about this change and update your training and documentation as appropriate.&nbsp;</p><p><b>Learn more:</b> <a href=\"https://docs.microsoft.com/microsoftteams/create-an-org-wide-team\" target=\"_blank\">Create an org-wide team in Microsoft Teams</a></p><p></p></p></table></div><div style=\"padding-top:3px\"><a href=\"https://admin.microsoft.com/AdminPortal/home?ref=MessageCenter&amp;id=MC238795&amp;MCLinkSource=MajorUpdate\" title=\"view message\" target=\"_blank\">View this message in the Microsoft 365 admin center</a> </div></td></tr><tr><td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"min-width:100%; background-color:#F3F2F1\"><tbody><tr><td style=\"padding:44px 24px 3px; font-size:10px; color:#484644\">You're subscribed to this email using gabe@superhuman.dev. If you're an IT admin, you're subscribed by default, but you can <a href=\"https://admin.microsoft.com/adminportal/home?ref=MessageCenter&amp;showPref=1\" target=\"_blank\">unsubscribe at any time</a>. If you're not an IT admin, ask your admin to remove your email address from Microsoft 365 message center preferences.<br><br><a href=\"https://docs.microsoft.com/en-us/microsoft-365/admin/manage/language-translation-for-message-center-posts?view=o365-worldwide\" target=\"_blank\">How to view translated messages</a><br></td></tr><tr><td style=\"padding:25px 24px 24px; font-size:12px\"><a href=\"https://go.microsoft.com/fwlink/?LinkId=521839\" target=\"_blank\" style=\"color:#696969; text-decoration:underline; text-decoration-color:#696969\">Privacy statement</a> <div style=\"color:#696969; margin-top:10px; margin-bottom:13px\">Microsoft Corporation, One Microsoft Way, Redmond WA 98052 USA</div><img src=\"https://eus-contentstorage.osi.office.net/images/retailer.images/centralizeddeployment/logos/112fec798b78aa02.png\" width=\"94\" height=\"20\" alt=\"Microsoft\"> </td></tr></tbody></table></td></tr></tbody></table></td><td></td></tr></tbody></table></div><img src=\"https://mucp.api.account.microsoft.com/m/v2/v?d=AIAAC3FIGDQ3H6WN6JYFAGLAII2DA2AOUJBT2PYLD632YG2RNGLKMYYO3K7AFETAZOBXWZKMEBEOSKPLJKYSGCJTYHNVKJ2SQ2D6SDFJQSTZ5ANI7PF5C25WI7FLU4NMWS4CYZGDFQIDJWU3WPSWKZYRWXVK2TA&amp;i=AIAAC5XM2Y6XZT6KM4WQRLHLBIYETGVVQLVEHFSIVVL5LTQLBFXEEGJ2QE63DBCLZA32TBYIBCD46HRHDK673N5FXCV257JFJ6FJSVMHOQO4JGTGQRCUFMGCKDC4UKALWPPPI4IPD34E6AN5APVKXBLQ4Y7SZGMBAV6VGZ22QS2F5MNOJGBIAGNEXJOXO6XKRPGFBPVMOJGJ2JYW7A4DWKQPRS24HF42DJ3AFBFZOGIXE3JSQD4DIG3JC7IJSXCEFFVWZJGF4IKTP764EACRSSAPCBIXHKQ\" width=\"1\" height=\"1\" tabindex=\"-1\" aria-hidden=\"true\" alt=\"\"> </body></html>"
},
"sender": {
"emailAddress": {
"name": "Microsoft 365 Message center",
"address": "o365mc@microsoft.com"
}
},
"from": {
"emailAddress": {
"name": "Microsoft 365 Message center",
"address": "o365mc@microsoft.com"
}
},
"toRecipients": [
{
"emailAddress": {
"name": "Gabe Shahbazian",
"address": "gabe@superhuman.dev"
}
}
],
"ccRecipients": [],
"bccRecipients": [],
"replyTo": [],
"flag": {
"flagStatus": "complete",
"completedDateTime": {
"dateTime": "2021-02-10T08:00:00.0000000",
"timeZone": "UTC"
}
}
}
// Inbox delta response after moving message back into inbox
$ curl --request GET --url 'https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdINObMeTZQLM3iBJ1w51ZqtIKX9syeBRc1GhJ3ub4LaOS4vpavypZKsq1rMxlgmkaUK2yIPJZN7tSTOfcrTn1rGyMoZM_ttNs4bbHCn2P2b2D.iy364WGgiQjqcyPvGTiLP9ROwVZ4K1PWfSftksBZOJ0' --header 'Authorization: Bearer ___' --header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 519 0 519 0 0 2495 0 --:--:-- --:--:-- --:--:-- 2483
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(message)",
"@odata.deltaLink": "https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdIPmCm9K88VbFAy1Jzm6NRIAsKtczdgVExkcFcqnhxa1JffWp32iUK9-5vG39IZXUKwE1kug51JRSJoWiDwLZWa4cBIYeZKxeisY73lqQxomn.9eLeBeoC_SGFq1jDo7myMLe0n_2tyjSvIrkxjXAI2So",
"value": [
{
"@odata.type": "#microsoft.graph.message",
"id": "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA",
"@removed": {
"reason": "deleted"
}
}
]
}
// Message state after moving message back into inbox
$ curl --request GET --url 'https://graph.microsoft.com/v1.0/me/messages/AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA' --header 'Authorization: Bearer ___' --header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7781 0 7781 0 0 19165 0 --:--:-- --:--:-- --:--:-- 19117
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('f2114cdc-2b43-4f2c-9461-897be3361582')/messages/$entity",
"@odata.etag": "W/\"CQAAABYAAAD8fsVbEwwTQY96LFxj9GwaAAAkty7O\"",
"id": "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0A-H7FWxMME0GPeixcY-RsGgAAIyTshAAA",
"createdDateTime": "2021-02-10T08:32:37Z",
"lastModifiedDateTime": "2021-02-11T18:31:06Z",
"changeKey": "CQAAABYAAAD8fsVbEwwTQY96LFxj9GwaAAAkty7O",
"categories": [],
"receivedDateTime": "2021-02-10T08:32:38Z",
"sentDateTime": "2021-02-10T08:32:31Z",
"hasAttachments": false,
"internetMessageId": "<1ec5807dedaa4e0daf4cbfd024ee1b88-JFBVALKQOJXWILKCJQZFA7CPGM3DKTLFONZWCZ3FINSW45DFOJ6E2ZLTONQWOZKDMVXHIZLSL5GUGMRTHA3TSNL4KNWXI4A=@microsoft.com>",
"subject": "Message Center Major Change Update Notification",
"bodyPreview": "Align the experience for creating a team from different Teams interfaces\r\nMC238795 · SUPERHUMAN\r\n\r\nThis update brings consistency in user experience for teams created via the Teams admin center and those created via Teams clients (desktop and web).\r\n\r\nKey",
"importance": "normal",
"parentFolderId": "AAMkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAuAAAAAACAG3H0ApEcSYEuaegDkdVyAQD8fsVbEwwTQY96LFxj9GwaAAAAAAEMAAA=",
"conversationId": "AAQkAGE4ZGJkNjFlLWFkZDUtNDAxZS05NzZhLWI5ZWFiMTIyYTZhMwAQAHIaUxM6c_NMrYbLTdGPbM8=",
"conversationIndex": "AQHW/4dJchpTEzpz40ythstN0Y9szw==",
"isDeliveryReceiptRequested": null,
"isReadReceiptRequested": false,
"isRead": true,
"isDraft": false,
"webLink": "https://outlook.office365.com/owa/?ItemID=AAkALgAAAAAAHYQDEapmEc2byACqAC%2FEWg0A%2FH7FWxMME0GPeixcY%2FRsGgAAIyTshAAA&exvsurl=1&viewmodel=ReadMessageItem",
"inferenceClassification": "focused",
"body": {
"contentType": "html",
"content": "<html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><meta content=\"text/html; charset=utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><meta content=\"IE=edge\"><style>\r\n<!--\r\nbody, table, td\r\n\t{font-family:Segoe UI,Helvetica,Arial,sans-serif!important}\r\na\r\n\t{color:#006CBE;\r\n\ttext-decoration:none}\r\n-->\r\n</style></head><body><div style=\"background:white; min-height:100vh; color:#323130; font-size:14px\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\"><tbody><tr><td></td><td width=\"640\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"min-width:100%; background:white\"><tbody><tr><td style=\"padding:24px 24px 45px\"><img src=\"https://eus-contentstorage.osi.office.net/images/retailer.images/centralizeddeployment/logos/112fec798b78aa02.png\" width=\"100\" height=\"21\" alt=\"Microsoft\"> </td></tr><tr><td style=\"font-size:28px; padding:0 24px; font-weight:bold; color:#000000\">Align the experience for creating a team from different Teams interfaces</td></tr><tr><td style=\"color:#323130; padding:20px 24px 40px 24px\"><span style=\"font-weight:600\">MC238795 · SUPERHUMAN</span></td></tr><tr><td style=\"padding:0 24px 44px\"><div><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\" style=\"font-size:100%; font-family:Segoe UI light\"><p style=\"margin-top:0\">This update brings consistency in user experience for teams created via the Teams admin center and those created via Teams clients (desktop and web).<p></p><p><b style=\"font-weight:600\">Key points</b></p><ul><li>Microsoft 365 <a href=\"https://www.microsoft.com/microsoft-365/roadmap?filters=&amp;searchterms=70696\" target=\"_blank\">Roadmap ID 70696</a></li><li>Timing: mid-March 2021</li><li>Roll-out: tenant level </li><li>Control type: admin control</li><li>Action: review and assess by March 15, 2021</li></ul><p><b style=\"font-weight:600\">How this will affect your organization</b></p><p>For new teams created via Teams admin center after this update:</p><ul><li>Teams will send Welcome emails to new members rather than Group welcome emails.</li><li>Members of the new team will not receive updates for events scheduled in the group calendar.</li><li>Unlike current teams created in the Teams admin center, after this change new teams will be hidden in Outlook experiences:<ul><li>The new team will not be displayed in Outlook clients, such as Outlook for Windows and Outlook on the web.</li><li>The new team will not be displayed in the Outlook Address Book; in address lists for selecting message recipients; or in the Browse Groups dialog when searching groups.</li></ul></li></ul><p><b style=\"font-weight:600\">What you need to do to prepare</b></p><p>Should you wish to continue having the current user experience for teams that are created in the Teams admin center, we recommend using the Groups Graph API to create teams.</p><p>You might want to notify your Teams admins about this change and update your training and documentation as appropriate.&nbsp;</p><p><b>Learn more:</b> <a href=\"https://docs.microsoft.com/microsoftteams/create-an-org-wide-team\" target=\"_blank\">Create an org-wide team in Microsoft Teams</a></p><p></p></p></table></div><div style=\"padding-top:3px\"><a href=\"https://admin.microsoft.com/AdminPortal/home?ref=MessageCenter&amp;id=MC238795&amp;MCLinkSource=MajorUpdate\" title=\"view message\" target=\"_blank\">View this message in the Microsoft 365 admin center</a> </div></td></tr><tr><td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"min-width:100%; background-color:#F3F2F1\"><tbody><tr><td style=\"padding:44px 24px 3px; font-size:10px; color:#484644\">You're subscribed to this email using gabe@superhuman.dev. If you're an IT admin, you're subscribed by default, but you can <a href=\"https://admin.microsoft.com/adminportal/home?ref=MessageCenter&amp;showPref=1\" target=\"_blank\">unsubscribe at any time</a>. If you're not an IT admin, ask your admin to remove your email address from Microsoft 365 message center preferences.<br><br><a href=\"https://docs.microsoft.com/en-us/microsoft-365/admin/manage/language-translation-for-message-center-posts?view=o365-worldwide\" target=\"_blank\">How to view translated messages</a><br></td></tr><tr><td style=\"padding:25px 24px 24px; font-size:12px\"><a href=\"https://go.microsoft.com/fwlink/?LinkId=521839\" target=\"_blank\" style=\"color:#696969; text-decoration:underline; text-decoration-color:#696969\">Privacy statement</a> <div style=\"color:#696969; margin-top:10px; margin-bottom:13px\">Microsoft Corporation, One Microsoft Way, Redmond WA 98052 USA</div><img src=\"https://eus-contentstorage.osi.office.net/images/retailer.images/centralizeddeployment/logos/112fec798b78aa02.png\" width=\"94\" height=\"20\" alt=\"Microsoft\"> </td></tr></tbody></table></td></tr></tbody></table></td><td></td></tr></tbody></table></div><img src=\"https://mucp.api.account.microsoft.com/m/v2/v?d=AIAAC3FIGDQ3H6WN6JYFAGLAII2DA2AOUJBT2PYLD632YG2RNGLKMYYO3K7AFETAZOBXWZKMEBEOSKPLJKYSGCJTYHNVKJ2SQ2D6SDFJQSTZ5ANI7PF5C25WI7FLU4NMWS4CYZGDFQIDJWU3WPSWKZYRWXVK2TA&amp;i=AIAAC5XM2Y6XZT6KM4WQRLHLBIYETGVVQLVEHFSIVVL5LTQLBFXEEGJ2QE63DBCLZA32TBYIBCD46HRHDK673N5FXCV257JFJ6FJSVMHOQO4JGTGQRCUFMGCKDC4UKALWPPPI4IPD34E6AN5APVKXBLQ4Y7SZGMBAV6VGZ22QS2F5MNOJGBIAGNEXJOXO6XKRPGFBPVMOJGJ2JYW7A4DWKQPRS24HF42DJ3AFBFZOGIXE3JSQD4DIG3JC7IJSXCEFFVWZJGF4IKTP764EACRSSAPCBIXHKQ\" width=\"1\" height=\"1\" tabindex=\"-1\" aria-hidden=\"true\" alt=\"\"> </body></html>"
},
"sender": {
"emailAddress": {
"name": "Microsoft 365 Message center",
"address": "o365mc@microsoft.com"
}
},
"from": {
"emailAddress": {
"name": "Microsoft 365 Message center",
"address": "o365mc@microsoft.com"
}
},
"toRecipients": [
{
"emailAddress": {
"name": "Gabe Shahbazian",
"address": "gabe@superhuman.dev"
}
}
],
"ccRecipients": [],
"bccRecipients": [],
"replyTo": [],
"flag": {
"flagStatus": "complete",
"completedDateTime": {
"dateTime": "2021-02-10T08:00:00.0000000",
"timeZone": "UTC"
}
}
}
// Inbox delta response of latest deltaLink
$ curl --request GET --url 'https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdIPmCm9K88VbFAy1Jzm6NRIAsKtczdgVExkcFcqnhxa1JffWp32iUK9-5vG39IZXUKwE1kug51JRSJoWiDwLZWa4cBIYeZKxeisY73lqQxomn.9eLeBeoC_SGFq1jDo7myMLe0n_2tyjSvIrkxjXAI2So' --header 'Authorization: Bearer ___' --header 'Prefer: IdType=ImmutableId' | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 369 100 369 0 0 2306 0 --:--:-- --:--:-- --:--:-- 2306
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(message)",
"@odata.deltaLink": "https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$deltatoken=GcTAE5lXuGbdMGm3btmdIPmCm9K88VbFAy1Jzm6NRIAsKtczdgVExkcFcqnhxa1JffWp32iUK9-5vG39IZXUKwE1kug51JRSJoWiDwLZWa4cBIYeZKxeisY73lqQxomn.9eLeBeoC_SGFq1jDo7myMLe0n_2tyjSvIrkxjXAI2So",
"value": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment