{"id":5415,"date":"2025-07-10T17:32:58","date_gmt":"2025-07-10T15:32:58","guid":{"rendered":"https:\/\/help.r2docuo.com\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/"},"modified":"2026-04-14T17:39:01","modified_gmt":"2026-04-14T15:39:01","slug":"how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph","status":"publish","type":"ht_kb","link":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/","title":{"rendered":"How to configure R2 Docuo to send mail via Azure &#8211; Microsoft Graph"},"content":{"rendered":"\n<p>This guide details the process of creating in your organization&#8217;s Microsoft Azure Portal an application record that allows R2 Docuo to send your emails securely through the Microsoft Graph API.<\/p>\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h2>\n\n<ul class=\"wp-block-list\">\n<li>Access to the Microsoft Azure Portal.<\/li>\n\n\n\n<li>Credentials for an account with Global Administrator or Application Administrator privileges in your organization&#8217;s Microsoft 365 environment.<\/li>\n\n\n\n<li>The R2 Docuo certificate file (<code>.cer<\/code>) downloaded from <a href=\"https:\/\/downloads.r2docuo.com\/certificate.zip\">https:\/\/downloads.r2docuo.com\/certificate.zip.<\/a><\/li>\n\n\n\n<li>An account of your organization with a mailbox on your Exchange Online<\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\"><strong>Mailing Application Registration<\/strong><\/h2>\n\n<p>To register a new application in the Microsoft Azure Portal you will need to follow the steps below. You must complete all of them before configuring it in Docuo. <\/p>\n\n<h3 class=\"wp-block-heading\">Access to the application registration page<\/h3>\n\n<ol class=\"wp-block-list\">\n<li><strong>Access the Microsoft Azure Portal at<\/strong> <a href=\"https:\/\/www.google.com\/search?q=https:\/\/portal.azure.com\"><\/a><a href=\"https:\/\/portal.azure.com\">https:\/\/portal.azure.com<\/a> and sign in with your organization&#8217;s Microsoft 365 account administrator credentials.  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"558\" class=\"wp-image-5411\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1.png 980w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1-600x342.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1-768x437.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1-50x28.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1-60x34.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1-100x57.png 100w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/li>\n\n\n\n<li>If the <em>App registrations<\/em> option appears directly <em>,<\/em> click on it. Otherwise go to search for <em>App registrations in the search bar,<\/em> once located*,* click on the icon*.*. <br\/><br\/><\/li>\n<\/ol>\n\n<h3 class=\"wp-block-heading\">Create a new application record<\/h3>\n\n<ol class=\"wp-block-list\">\n<li>Click on <em>New Registration<\/em> to create the application for R2 Docuo to access.  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"1026\" height=\"522\" class=\"wp-image-5413\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2.png 1026w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2-600x305.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2-1024x521.png 1024w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2-768x391.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2-50x25.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2-60x31.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-2-100x51.png 100w\" sizes=\"auto, (max-width: 1026px) 100vw, 1026px\" \/><br\/><\/li>\n\n\n\n<li>Enter a name that makes it clear what the application will be used for, e.g. &#8220;Application for sending mails from R2 Docuo&#8221;.<\/li>\n\n\n\n<li>Under <em>Supported account types<\/em>, click <em>Only accounts in this organizational directory (your company name).<\/em><\/li>\n\n\n\n<li>Click on <em>Register<\/em>. The new application page will open: <br\/> <br\/><img loading=\"lazy\" decoding=\"async\" width=\"1034\" height=\"490\" class=\"wp-image-5417\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3.png 1034w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3-600x284.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3-1024x485.png 1024w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3-768x364.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3-50x24.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3-60x28.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-3-100x47.png 100w\" sizes=\"auto, (max-width: 1034px) 100vw, 1034px\" \/><br\/><\/li>\n\n\n\n<li>Copy and save the value of the de  <em><strong>Application ID (customer) <\/strong>  y  <strong>Directory ID (tenant) <\/strong><\/em>. Which you will need to enter in the mailing configuration in R2 Docuo later on.<\/li>\n<\/ol>\n\n<h3 class=\"wp-block-heading\">Certificate of access<\/h3>\n\n<ol class=\"wp-block-list\">\n<li>Download R2 Docuo certificate file (public key) from the following URL: <a href=\"https:\/\/downloads.r2docuo.com\/certificate.zip\">https:\/\/downloads.r2docuo.com\/certificate.zip<\/a><\/li>\n\n\n\n<li>Unzip the ZIP file and save <strong>r2docuo.cer<\/strong> to your hard disk.<\/li>\n\n\n\n<li>In the application we have created in the Azure portal Click on <em>Certificates and secrets, select the Certificates tab on the right and<\/em> click on <em>Upload certificate.<\/em> <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"944\" height=\"587\" class=\"wp-image-5419\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-4.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-4.png 944w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-4-600x373.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-4-768x478.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-4-50x31.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-4-60x37.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-4-100x62.png 100w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><\/li>\n\n\n\n<li>Select the certificate file r2docuo.cer from your hard disk.<\/li>\n<\/ol>\n\n<h3 class=\"wp-block-heading\">Grant permissions to the application<\/h3>\n\n<ol class=\"wp-block-list\">\n<li>Now we are going to define the permissions of your application, click on <em>API Permissions<\/em> and then on <em>Add a Permission<\/em> <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"1028\" height=\"614\" class=\"wp-image-5422\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6.png 1028w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6-600x358.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6-1024x612.png 1024w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6-768x459.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6-50x30.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6-60x36.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-6-100x60.png 100w\" sizes=\"auto, (max-width: 1028px) 100vw, 1028px\" \/><br\/><\/li>\n\n\n\n<li>Search and click on the <em>Microsoft Graph<\/em> option <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"536\" height=\"89\" class=\"wp-image-5424\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-7.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-7.png 536w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-7-50x8.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-7-60x10.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-7-100x17.png 100w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><br\/><\/li>\n\n\n\n<li>Now click on <em>Application Permissions<\/em> <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"350\" class=\"wp-image-5426\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-8.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-8.png 511w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-8-50x34.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-8-60x41.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-8-100x68.png 100w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><br\/><\/li>\n\n\n\n<li>Enter Mail.Send in the search box. Once found, mark it in the list.  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"574\" class=\"wp-image-5428\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-9.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-9.png 827w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-9-600x416.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-9-768x533.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-9-50x35.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-9-60x42.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-9-100x69.png 100w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n\n\n\n<li>Click on <em>Add permissions<\/em>. By default, the new permission, Mail.Send, appears in your permissions list with the status <em>Not Granted.<\/em> <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"193\" class=\"wp-image-5430\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-10.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-10.png 864w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-10-600x134.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-10-768x172.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-10-50x11.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-10-60x13.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-10-100x22.png 100w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><br\/><\/li>\n\n\n\n<li>You must grant consent with the <em>Grant<\/em> button located on the list toolbar*.* If successful, the permission will appear like this:  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"851\" height=\"187\" class=\"wp-image-5432\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-11.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-11.png 851w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-11-600x132.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-11-768x169.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-11-50x11.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-11-60x13.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-11-100x22.png 100w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><br\/><\/li>\n\n\n\n<li>Now we need to add another permission to be able to create calendar events. Click again on <em>Add permissions<\/em>. We return to choose <em>Application permission and<\/em> in the search engine we look for <em>Calendars.ReadWrite.<\/em> We grant permissions again and if everything is correct the permissions will be as follows:  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"217\" class=\"wp-image-5434\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-12.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-12.png 902w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-12-600x144.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-12-768x185.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-12-50x12.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-12-60x14.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/graph-12-100x24.png 100w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><br\/><\/li>\n<\/ol>\n\n<h3 class=\"wp-block-heading\">Docuo mailing configuration<\/h3>\n\n<ol class=\"wp-block-list\">\n<li>You must access your R2 Docuo account at <a href=\"https:\/\/myaccount.r2docuo.com\">https:\/\/myaccount.r2docuo.com<\/a> by entering the credentials of the R2 Docuo repository owner.  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"465\" class=\"wp-image-5441\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-15.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-15.png 999w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-15-600x279.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-15-768x357.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-15-50x23.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-15-60x28.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-15-100x47.png 100w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><br\/><\/li>\n\n\n\n<li>Choose the repository from which you want to send mails through Azure and click in the <em>Actions<\/em> column on theNut button to access its configuration.  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"330\" class=\"wp-image-5439\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-14.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-14.png 1004w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-14-600x197.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-14-768x252.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-14-50x16.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-14-60x20.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-14-100x33.png 100w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><br\/><\/li>\n\n\n\n<li>Find the Mail Server section and click on Change mail server:  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"936\" height=\"137\" class=\"wp-image-5437\" style=\"width: px;\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-13.png\" alt=\"\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-13.png 936w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-13-600x88.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-13-768x112.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-13-50x7.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-13-60x9.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-13-100x15.png 100w\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" \/><br\/><\/li>\n\n\n\n<li>Select the option <em>My own mail server<\/em> and choose <em>Office 365 (Microsoft Graph)<\/em> from the list:  <\/li>\n\n\n\n<li>Enter the data with the Tenant and Customer identifiers and the <em>name<\/em> and <em>e-mail address of<\/em> the service account you wish to use for sending e-mails.<\/li>\n\n\n\n<li>Click on send a test mail<\/li>\n\n\n\n<li>If everything is correct click <em>Save changes<\/em> and your R2 Docuo repository will be configured and ready to use the specified Office 365 account to send mails.<\/li>\n<\/ol>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"766\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1-1024x766.png\" alt=\"\" class=\"wp-image-5612\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1-1024x766.png 1024w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1-600x449.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1-768x575.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1-50x37.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1-60x45.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1-100x75.png 100w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/image-1.png 1052w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\">Administrators&#8217; Guide: Limiting Mail.Send Permission to a Specific Mailbox<\/h2>\n\n<p>This procedure ensures that an Azure application, even if it has the <strong>Mail.Send<\/strong> permission, can only send mail from mailboxes that are explicitly authorized.<\/p>\n\n<h3 class=\"wp-block-heading\">Step 1: Identify the Client ID (ClientID) of the Application<\/h3>\n\n<p>This information must be obtained from the application registration in the customer&#8217;s Azure portal.<\/p>\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>The customer&#8217;s Azure portal must be accessed at<a href=\"https:\/\/portal.azure.com\">(https:\/\/portal.azure.com).<\/a><\/li>\n\n\n\n<li>Select <strong>Azure Active Directory<\/strong>.<\/li>\n\n\n\n<li>Access <strong>App<\/strong> registrations.<\/li>\n\n\n\n<li>Search and select the application configured for the Docuo service.<\/li>\n\n\n\n<li>On the<strong>Overview<\/strong> page, copy the <strong>application (client) ID<\/strong>, as it will be needed later.<\/li>\n<\/ol>\n\n<h3 class=\"wp-block-heading\">Step 2: Create a Mail Enabled Security Group<\/h3>\n\n<p>A group containing only the e-mail accounts authorized for sending must be created.<\/p>\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Access the Exchange Management Center at<a href=\"https:\/\/www.google.com\/url?q=https%3A%2F%2Fadmin.exchange.microsoft.com%2F\" target=\"_blank\" rel=\"noreferrer noopener\">(https:\/\/admin.exchange.microsoft.com\/).<\/a><\/li>\n\n\n\n<li>In the menu on the left, select <strong>Groups<\/strong>.<\/li>\n\n\n\n<li>Click on <strong>Add a group<\/strong>.<\/li>\n\n\n\n<li>Choose the group type:<strong>&#8220;Security enabled for mail<\/strong>&#8220;.<\/li>\n\n\n\n<li>Group name: Assign a clear and descriptive name to the group, for example: <strong>Docuo_Mail_Senders<\/strong>.<\/li>\n<\/ol>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"447\" src=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-1024x447.png\" alt=\"\" class=\"wp-image-5576\" srcset=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-1024x447.png 1024w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-600x262.png 600w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-768x335.png 768w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-50x22.png 50w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-1536x670.png 1536w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-60x26.png 60w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph-100x44.png 100w, https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/microsft-graph.png 1666w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>In the <strong>Members<\/strong> step, select <strong>Add members<\/strong>.<\/li>\n\n\n\n<li>Search and select the email account to be used for sending (for example, <strong><a href=\"mailto:noresponder@tudominio.com\">noresponder@tudominio.com<\/a><\/strong>).<\/li>\n\n\n\n<li>In the <strong>Setup<\/strong> step, define an e-mail address to identify the group, for example: <strong><a href=\"mailto:docuo_mail_senders@tudominio.com\">docuo_mail_senders@tudominio.com<\/a><\/strong><\/li>\n\n\n\n<li>Finalize the creation of the group.<\/li>\n<\/ol>\n\n<p>Once this process is completed, a security group is available that explicitly defines which mailboxes have permission to send.<\/p>\n\n<h3 class=\"wp-block-heading\">Step 3: Connect to Exchange Online PowerShell<\/h3>\n\n<p>The restriction policy can only be created by commands. To do this, you must connect to Exchange Online PowerShell.<\/p>\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open a PowerShell window with administrator privileges.<\/li>\n\n\n\n<li>Make sure that script execution is allowed using the following command: Set-ExecutionPolicy -Scope Process RemoteSigned and, if necessary, install the <strong>ExchangeOnlineManagement<\/strong> module.<\/li>\n\n\n\n<li>Connect to Exchange Online using an administrative account with the command: <code>Connect-ExchangeOnline -UserPrincipalName &lt;<a href=\"mailto:tu_admin_email@dominio.com\">tu_admin_email@dominio.com<\/a>&gt;<\/code>. In case you are not previously authenticated, a login window will be displayed. <\/li>\n<\/ol>\n\n<h3 class=\"wp-block-heading\">Step 4: Create the Application Access Policy (The Key Step)<\/h3>\n\n<p>Once the connection is established, the policy restricting application access must be created.<\/p>\n\n<p>New-ApplicationAccessPolicy -AppId &#8220;EL_CLIENT_ID_ID_DE_LA_APP&#8221; -PolicyScopeGroupId &#8220;<strong><a href=\"mailto:docuo_mail_senders@tudominio.com\">docuo_mail_senders@tudominio.com<\/a><\/strong>&#8221; -AccessRight RestrictAccess -Description &#8220;Restrict Docuo application mailing to <strong>Docuo_Mail_Senders<\/strong> group members only.&#8221;<\/p>\n\n<p>Command breakdown:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><code>-AppId<\/code>Application ID (client) obtained in Step 1.<\/li>\n\n\n\n<li><code>-PolicyScopeGroupId<\/code>: Email address of the security group created in Step 2.<\/li>\n\n\n\n<li><code>-AccessRight RestrictAccess<\/code>This is the <strong>crucial parameter<\/strong>. Tells Exchange that this application can only access mailboxes that are within the group specified at <code>-PolicyScopeGroupId<\/code>.<\/li>\n\n\n\n<li><code>-Description<\/code>Description of the directive to facilitate its identification by other administrators.<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">Step 5: Verify the Configuration<\/h3>\n\n<p>The configuration should be verified by performing access tests:<\/p>\n\n<h5 class=\"wp-block-heading\">1. Tests with a mailbox that DOES need to have access:<\/h5>\n\n<p>Test-ApplicationAccessPolicy -Identity &#8220;<strong><a href=\"mailto:noresponder@tudominio.com\">noresponder@tudominio.com<\/a><\/strong>&#8221; -AppId &#8220;EL_CLIENT_ID_DE_LA_APP&#8221; -AppId &#8220;EL_CLIENT_ID_DE_LA_APP&#8221;<\/p>\n\n<p>The expected result is <code>AccessCheckResult: <\/code>Condedido.<\/p>\n\n<h5 class=\"wp-block-heading\">2. Tests with a mailbox that should NOT have access:<\/h5>\n\n<p>Test-ApplicationAccessPolicy -Identity &#8220;<strong><a href=\"mailto:otro.usuario@tudominio.com\">otro.usuario@tudominio.com<\/a><\/strong>&#8221; -AppId &#8220;EL_CLIENT_ID_DE_LA_APP&#8221; -AppId &#8220;EL_CLIENT_ID_DE_LA_APP&#8221;<\/p>\n\n<p>The expected result is <code>AccessCheckResult: <\/code>Denied.<\/p>\n\n<p>Once these steps are completed, the application, despite having the <code>Mail.Send<\/code> permission at the Azure AD level, will be functionally restricted to send mail only from authorized mailboxes, such as <code><a href=\"mailto:envios-docuo@tudominio.com\">envios-docuo@tudominio.com<\/a><\/code>.<\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide details the process of creating in your organization&#8217;s Microsoft Azure Portal an application record that allows R2 Docuo to send your emails securely through the Microsoft Graph API. Prerequisites Mailing Application Registration To register a new application in the Microsoft Azure Portal you will need to follow the&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"content-type":"","footnotes":""},"ht-kb-category":[72],"ht-kb-tag":[],"class_list":["post-5415","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-administrators"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to configure R2 Docuo to send mail via Azure - Microsoft Graph - R2 Docuo | Help center<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to configure R2 Docuo to send mail via Azure - Microsoft Graph - R2 Docuo | Help center\" \/>\n<meta property=\"og:description\" content=\"This guide details the process of creating in your organization&#8217;s Microsoft Azure Portal an application record that allows R2 Docuo to send your emails securely through the Microsoft Graph API. Prerequisites Mailing Application Registration To register a new application in the Microsoft Azure Portal you will need to follow the...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/\" \/>\n<meta property=\"og:site_name\" content=\"R2 Docuo | Help center\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-14T15:39:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"980\" \/>\n\t<meta property=\"og:image:height\" content=\"558\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@R2Docuo\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/\",\"url\":\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/\",\"name\":\"How to configure R2 Docuo to send mail via Azure - Microsoft Graph - R2 Docuo | Help center\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/help.r2docuo.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Graph-1.png\",\"datePublished\":\"2025-07-10T15:32:58+00:00\",\"dateModified\":\"2026-04-14T15:39:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/#primaryimage\",\"url\":\"https:\\\/\\\/help.r2docuo.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Graph-1.png\",\"contentUrl\":\"https:\\\/\\\/help.r2docuo.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Graph-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/en\\\/knowledge-base\\\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/help.r2docuo.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to configure R2 Docuo to send mail via Azure &#8211; Microsoft Graph\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/#website\",\"url\":\"https:\\\/\\\/help.r2docuo.com\\\/\",\"name\":\"R2 Docuo | Help center\",\"description\":\"Todos los recursos para usuarios, administradores y desarrolladores de de R2 Docuo a tu alcance\",\"publisher\":{\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/help.r2docuo.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/#organization\",\"name\":\"R2 Docuo | Help center\",\"url\":\"https:\\\/\\\/help.r2docuo.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/help.r2docuo.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/ILUDEST_CENTRODEAYUDA.png\",\"contentUrl\":\"https:\\\/\\\/help.r2docuo.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/ILUDEST_CENTRODEAYUDA.png\",\"width\":1200,\"height\":630,\"caption\":\"R2 Docuo | Help center\"},\"image\":{\"@id\":\"https:\\\/\\\/help.r2docuo.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/R2Docuo\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/r2docuo\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to configure R2 Docuo to send mail via Azure - Microsoft Graph - R2 Docuo | Help center","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"How to configure R2 Docuo to send mail via Azure - Microsoft Graph - R2 Docuo | Help center","og_description":"This guide details the process of creating in your organization&#8217;s Microsoft Azure Portal an application record that allows R2 Docuo to send your emails securely through the Microsoft Graph API. Prerequisites Mailing Application Registration To register a new application in the Microsoft Azure Portal you will need to follow the...","og_url":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/","og_site_name":"R2 Docuo | Help center","article_modified_time":"2026-04-14T15:39:01+00:00","og_image":[{"width":980,"height":558,"url":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@R2Docuo","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/","url":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/","name":"How to configure R2 Docuo to send mail via Azure - Microsoft Graph - R2 Docuo | Help center","isPartOf":{"@id":"https:\/\/help.r2docuo.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/#primaryimage"},"image":{"@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/#primaryimage"},"thumbnailUrl":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1.png","datePublished":"2025-07-10T15:32:58+00:00","dateModified":"2026-04-14T15:39:01+00:00","breadcrumb":{"@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/#primaryimage","url":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1.png","contentUrl":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2025\/07\/Graph-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/help.r2docuo.com\/en\/knowledge-base\/how-to-configure-docuo-to-send-emails-through-azure-microsoft-graph\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/help.r2docuo.com\/"},{"@type":"ListItem","position":2,"name":"How to configure R2 Docuo to send mail via Azure &#8211; Microsoft Graph"}]},{"@type":"WebSite","@id":"https:\/\/help.r2docuo.com\/#website","url":"https:\/\/help.r2docuo.com\/","name":"R2 Docuo | Help center","description":"Todos los recursos para usuarios, administradores y desarrolladores de de R2 Docuo a tu alcance","publisher":{"@id":"https:\/\/help.r2docuo.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.r2docuo.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/help.r2docuo.com\/#organization","name":"R2 Docuo | Help center","url":"https:\/\/help.r2docuo.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/help.r2docuo.com\/#\/schema\/logo\/image\/","url":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png","contentUrl":"https:\/\/help.r2docuo.com\/wp-content\/uploads\/2023\/06\/ILUDEST_CENTRODEAYUDA.png","width":1200,"height":630,"caption":"R2 Docuo | Help center"},"image":{"@id":"https:\/\/help.r2docuo.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/R2Docuo","https:\/\/www.linkedin.com\/company\/r2docuo"]}]}},"_links":{"self":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb\/5415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/comments?post=5415"}],"version-history":[{"count":0,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb\/5415\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/media?parent=5415"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=5415"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.r2docuo.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=5415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}