Azure AD Integration
To integrate with Azure AD, you will need to register an app.
Prerequisite:
The Azure account must have permission to manage applications in Azure Active Directory (Azure AD). Any of the following Azure AD roles include the required permissions:
- Application administrator
- Application developer
- Cloud application administrator
To create an app:
- Sign In to Azure Portal.
- Search for and select Azure Active Directory.
- Under Manage, select App Registration > New registration.
- Enter a display Name then click Register.

After registration finish, app overview pane will be displayed.
To give require permission:
- Click API permissions > Add a permission > Microsoft graph > Application permissions >
Mail.ReadWrite > Add Permissions. - Grant admin consent for the organization.

After giving require permission, please create a client secret.
To create a Client secret:
- Select Certificates & secrets >New client secret, add a description then click save.

PhishGuard Configurations:
After registering the app, give require permission and create a client secret, you can configure PhishGuard to delete reported email , to do:
- Add your tenant id, client id and client secret to Azure Email App settings.
- Change Reporter Add-in Settings to delete the emails, either permanently or move them to the deleted items folder

now, any reported email will be deleted based on the configurations.