{"id":3057,"date":"2019-06-05T11:56:01","date_gmt":"2019-06-05T18:56:01","guid":{"rendered":"https:\/\/developer.microsoft.com\/en-us\/office\/blogs\/?p=3057"},"modified":"2021-10-18T11:08:34","modified_gmt":"2021-10-18T18:08:34","slug":"scoping-microsoft-graph-application-permissions-to-specific-exchange-online-mailboxes","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/scoping-microsoft-graph-application-permissions-to-specific-exchange-online-mailboxes\/","title":{"rendered":"Scoping Microsoft Graph application permissions to specific Exchange Online mailboxes"},"content":{"rendered":"<p>Today we\u2019re excited to announce the release of the Application Access Policy feature for Exchange Online PowerShell. This feature allows Exchange Online administrators to scope application permissions for Microsoft Graph to allow access to specified mailboxes in their Office 365 tenant.<\/p>\n<p>Why would you need to do this? Well, imagine Contoso, an Office 365 customer that has thousands of employees spread across multiple departments. Contoso has built and deployed an appointment booking app that helps their customers book service appointments with specialist technicians employed by the company.<\/p>\n<p>The app Contoso built uses Microsoft Graph to identify free appointment times on the technicians\u2019 calendars and uses them to book appointments. Because the app requires access to multiple technicians\u2019 mailboxes, it uses the <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/v2-oauth2-client-creds-grant-flow\">OAuth 2.0 client credentials grant flow<\/a>, and application permissions were granted to it, enabling the app to access all mailboxes in the organization, not just the mailboxes belonging to technicians.<\/p>\n<p>Using Application Access Policies, Contoso administrators can now restrict the app\u2019s access to only the technicians\u2019 mailboxes via a security group, and disallow its access to other mailboxes. You can use the following links to learn more about this feature.<\/p>\n<p><strong>Additional resources<\/strong><\/p>\n<ol>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/auth-limit-mailbox-access\">Scoping application permissions to specific Exchange Online mailboxes<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/powershell\/module\/exchange\/organization\/new-applicationaccesspolicy\">New-ApplicationAccessPolicy<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/powershell\/module\/exchange\/organization\/get-applicationaccesspolicy\">Get-ApplicationAccessPolicy<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/powershell\/module\/exchange\/organization\/remove-applicationaccesspolicy\">Remove-ApplicationAccessPolicy<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/powershell\/module\/exchange\/organization\/set-applicationaccesspolicy\">Set-ApplicationAccessPolicy<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/powershell\/module\/exchange\/organization\/test-applicationaccesspolicy\">Test-ApplicationAccessPolicy<\/a><\/li>\n<\/ol>\n<p>Please <a href=\"https:\/\/microsoftgraph.uservoice.com\/forums\/920506-microsoft-graph-feature-requests\">let us know<\/a> if you have additional feedback about Microsoft Graph or suggestions for new functionality.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we\u2019re excited to announce the release of the Application Access Policy feature for Exchange Online PowerShell. This feature allows Exchange Online administrators to scope application permissions for Microsoft Graph to allow access to specified mailboxes in their Office 365 tenant.<\/p>\n","protected":false},"author":69107,"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-3057","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>Today we\u2019re excited to announce the release of the Application Access Policy feature for Exchange Online PowerShell. This feature allows Exchange Online administrators to scope application permissions for Microsoft Graph to allow access to specified mailboxes in their Office 365 tenant.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3057","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\/69107"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=3057"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3057\/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=3057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=3057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=3057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}