Step 1 of 2
Create an App Registration in Microsoft Azure
1.1: Log in to Azure
- Log in to the Microsoft Azure account linked to your Microsoft 365 Tenant: portal.azure.com
1.2: Navigate to App Registrations
- In the search bar at the top of the page, search for App registrations and click on the corresponding service.
1.3: Create a New Registration
- Click New Registration to create a new App Registration.
1.4: Name and Register the App
- Provide the app with a unique and distinguishable name (e.g. PhishByte DMI Connector).
- Leave all other options on their default settings.
- Click the Register button.
1.5: Copy the Application ID and Tenant ID
- While on the Overview page, copy the Application (Client) ID and Directory (Tenant) ID values to your clipboard or a text editor. You will need these later.
1.6: Open API Permissions
- Click on the Manage → API permissions tab in the left sidebar.
1.7: Add a Permission
- Click the Add a permission button.
1.8: Select Microsoft Graph
- Click the Microsoft Graph API option.
1.9: Select Application Permissions
- Click Application permissions.
1.10: Add Mail.ReadWrite Permission
- In the search box, type Mail.ReadWrite.
- Expand the Mail permission group.
- Select the Mail.ReadWrite permission.
1.11: Add User.Read.All Permission
- Change the search to User.Read.All.
- Expand the User permission group.
- Select the User.Read.All permission.
1.12: Add the Selected Permissions
- Click the Add permissions button at the bottom of the page to add the two permissions selected.
1.13: Confirm Permissions Appear
- Confirm that both Mail.ReadWrite and User.Read.All appear in the API Permissions table.
- A warning will appear next to each indicating that admin consent has not yet been granted. This is expected at this stage.
1.14: Grant Admin Consent
- Click the Grant admin consent... button directly above the permissions table.
- After clicking, the Status column will update to indicate that access has been granted.
1.15: Navigate to Certificates and Secrets
- Change to the Manage → Certificates & secrets tab in the left sidebar.
1.16: Create a New Client Secret
- Click the New client secret button.
1.17: Name and Set Expiry
- In the dialog that appears, provide the secret with a descriptive name (e.g. PhishByte DMI Connector Secret).
- Set an expiration date; the maximum of 730 days is recommended. Upon expiration you will need to provision a new secret.
- Click Add.
1.18: Copy the Client Secret Value
- Your secret will now appear in the Client secrets table.
- Copy the Value of the newly created secret to your clipboard or text editor immediately. This value will not be shown again after you navigate away.