How to register an Azure application with mail-sending API permissions and restrict its access to specific mailboxes
You register an Azure app so the Bold Reports® Report Server can send email through a Microsoft Office 365 account with OAuth authentication. The app needs the required API permissions to access the email service. You can also limit its access to specific mailboxes if needed.
How do I register an Azure application with mail-sending API permissions?
You register the app in Microsoft Entra ID (formerly Azure AD), create a client secret, and grant the Microsoft Graph Mail.Send permission. The Report Server email settings use the client ID, tenant ID, and client secret from these steps.
-
Go to the Azure portal and select
Microsoft Entra ID.
-
Click
App registrationsin the side navigation menu. -
Click
New registration.
-
Enter a meaningful name for your application in the Name section.
-
Under Supported account types, choose the Accounts in this organizational directory only option.
-
Click
Registerto create the application.
-
On the app Overview page, copy the Application (Client) ID and Directory (tenant) ID. You need them for the email settings configuration.

-
Click the
Certificates & Secretsoption and selectNew client secretto generate a client secret for the app.
-
Add the
Descriptionand select theExpiresoption that fits your requirement. ClickAdd.
-
Copy the
value, which is the app client secret, and store it securely. You cannot see the value again after you reload the page.
-
To add the
Mail.SendAPI permission, select theAPI permissionstab and clickAdd a permission.
-
Select
Microsoft Graphfrom the permission list.
-
Choose
Application permissionsand search for Mail in the search area. -
Select the
Mail.Sendpermission from the list and click theAdd Permissionsbutton. -
Provide admin consent for the
Mail.Sendpermission for the Microsoft Graph API.

-
Confirm that the permission is listed in the permissions grid.

Restricting app access to specific mailboxes
Restricting app access stops other senders from misusing the Mail.Send permission that Bold Reports® email sending needs. Sending email through the Microsoft Graph API with a Microsoft Office 365 account and OAuth authentication requires the ‘Mail.Send’ permission. Granting this permission to the entire application can let other senders misuse someone’s email address.
Without restrictions, unauthorized users can send emails from the application, which is a security concern. Restrict app access with an application access policy. To configure application access policies, see Configure ApplicationAccessPolicy in Microsoft Graph. After you configure the application access policy for a specific mailbox, other mailboxes cannot send emails using the app.
Sample to create an access policy: Create an access policy to restrict app access to specific mailboxes.

Sample to test an access policy: Test whether permission has been granted for the email address.

Frequently asked questions
Which Microsoft Graph permission does Bold Reports® need to send email?
The Azure app needs the Microsoft Graph Mail.Send application permission, with admin consent, for the Bold Reports® Report Server to send email through Office 365 OAuth.
Can I see the client secret again later?
No. Copy the client secret value when you create it, because you cannot see the value again after you reload the page.