{"id":4244,"date":"2020-03-17T10:43:49","date_gmt":"2020-03-17T17:43:49","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=4244"},"modified":"2020-03-17T10:43:49","modified_gmt":"2020-03-17T17:43:49","slug":"accessing-outlook-items-in-a-users-archived-shared-or-delegated-mailboxes-using-microsoft-graph","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/accessing-outlook-items-in-a-users-archived-shared-or-delegated-mailboxes-using-microsoft-graph\/","title":{"rendered":"Accessing Outlook items in a user&#8217;s archived, shared or delegated mailboxes using Microsoft Graph"},"content":{"rendered":"<p>We have noticed that a few customers are unsure about the right way to access Outlook messages and contacts in mailboxes other than the signed-in user\u2019s primary mailbox (<a href=\"https:\/\/docs.microsoft.com\/en-us\/exchange\/policy-and-compliance\/in-place-archiving\/in-place-archiving?view=exchserver-2019\">archive<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/microsoft-365\/admin\/add-users\/give-mailbox-permissions-to-another-user?view=o365-worldwide\">delegated<\/a>, or <a href=\"https:\/\/docs.microsoft.com\/en-us\/exchange\/collaboration\/shared-mailboxes\/shared-mailboxes?view=exchserver-2019\">shared<\/a> mailboxes). For example, some customers use one of the following API URLs to access Outlook items in another mailbox, using the item ID and the \/me URL path.<\/p>\n<blockquote>\n<p style=\"text-align: left\">https:\/\/graph.microsoft.com\/v1.0\/me\/messages\/{message_id} https:\/\/graph.microsoft.com\/v1.0\/me\/contacts\/{contact_id}<\/p>\n<\/blockquote>\n<p>Note that the item ID corresponds to an item that resides in a mailbox (archive, shared, or delegated) that is different from the signed-in user\u2019s primary mailbox. This is an incorrect way to access items across mailboxes, even if the API call succeeded in certain cases. Such cross-mailbox API calls were never supported, and are less performant and more error-prone.<\/p>\n<p>To ensure consistent API behavior with lower failure rates, starting April 15, 2020, such cross-mailbox API calls will fail. Please note that the above API calls will continue to work with Outlook items that belong to the signed-in user\u2019s primary mailbox.<\/p>\n<p>If you&#8217;re an app developer who used the above APIs to access Outlook items in an archive mailbox, or items belonging to another user in a delegated or shared mailbox, we recommend that you immediately update your application to use one of the following APIs to ensure continuity of service:<\/p>\n<blockquote><p>https:\/\/graph.microsoft.com\/v1.0\/users\/{user_id}\/messages\/{message_id} https:\/\/graph.microsoft.com\/v1.0\/users\/{user_id}\/contacts\/{contact_id}<\/p><\/blockquote>\n<p>In the preceding query URLs, {user_id} is the SMTP address of the delegated or shared mailbox.<\/p>\n<p>Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have noticed that a few customers are unsure about the right way to access Outlook messages and contacts in mailboxes other than the signed-in user\u2019s primary mailbox (archive, delegated, or shared mailboxes). For example, some customers use one of the following API URLs to access Outlook items in another mailbox, using the item ID [&hellip;]<\/p>\n","protected":false},"author":69077,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,11],"tags":[12],"class_list":["post-4244","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-office-add-ins","tag-outlook"],"acf":[],"blog_post_summary":"<p>We have noticed that a few customers are unsure about the right way to access Outlook messages and contacts in mailboxes other than the signed-in user\u2019s primary mailbox (archive, delegated, or shared mailboxes). For example, some customers use one of the following API URLs to access Outlook items in another mailbox, using the item ID [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4244","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\/69077"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=4244"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4244\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=4244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=4244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=4244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}