> For the complete documentation index, see [llms.txt](https://docs.dropzone.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dropzone.ai/integrations/alert/ms_alert/ms365_email_group.md). Agents can also search and read this documentation through its [MCP server](https://docs.dropzone.ai/~gitbook/mcp).

# Microsoft Security Group

The Dropzone platform can ingest email and phishing alerts from cross-organizational email accounts. If you wish to restrict the access of Dropzone's analysis, you can create a dedicated mail-enabled security group and create an Application Access Policy which restricts access to a finite and enumerated list of mailboxes

## Create a Mail-Enabled Security Group

* Navigate to your [Microsoft Exchange Admin Center](https://admin.exchange.microsoft.com/#/)
* In the left sidebar, navigate to Recipients > Groups

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2FSJaJO93NtMl6CjnBGRZk%2Fms365-email-1.png?alt=media" alt=""><figcaption><p>Click "Groups"</p></figcaption></figure>

* Click "Add a group"

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2FypL77yKspPRkddxWkqrC%2Fms365-email-2.png?alt=media" alt=""><figcaption><p>Add a Group</p></figcaption></figure>

* Select "Mail-enabled security," then click "Next"

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2FDKsn2GybPyq1xZQe0w0i%2Fms365-email-3.png?alt=media" alt=""><figcaption><p>Click "Mail-enabled Security"</p></figcaption></figure>

* Name the group something memorable, such as "DropzoneAllowedInboxes," then click "Next"

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2Fvn8sIY7WFaw6J8AYZLsS%2Fms365-email-4.png?alt=media" alt=""><figcaption><p>Assign a group name</p></figcaption></figure>

* Click "+ Assign Owners" and assign your desired owner from the list, then click "Add"

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2F6XFUS5e0Zgmn1uJpbg9r%2Fms365-email-5.png?alt=media" alt=""><figcaption><p>Assign an owner</p></figcaption></figure>

* Click "+ Add Members" and add your desired members. Members will receive all emails sent to this email address, and will be able to send emails to it for Dropzone to analyze

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2FLgJ5Tw8gCNtaLfRzDis4%2Fms365-email-6.png?alt=media" alt=""><figcaption><p>Add group members</p></figcaption></figure>

* In the "Edit Settings" section, create a memorable group email address, such as "<dropzone-allowed-inboxes@mycompany.net>"
* If you want people outside of your organization to be able to send emails to the group, check the box under "Communication"
* For added security, you may check the box under "Approval" to require owner permission to join the group

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2FnSrfHTI57aatXovBYca7%2Fms365-email-7.png?alt=media" alt=""><figcaption><p>Configure the group email address</p></figcaption></figure>

* Click "Next," then click "Create Group"

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2FGqBlMlPuE5tlO4feXz9k%2Fms365-email-8.png?alt=media" alt=""><figcaption><p>Create the group</p></figcaption></figure>

See Microsoft's [documentation](https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-mail-enabled-security-groups) for more information

## Create an Application Access Restriction Policy

* Follow steps on the Microsoft Integrations page to create a new application in Microsoft Entra Admin Center (or use an existing application)
* Record your Client ID
* Navigate to your [Exchange Admin Center](https://admin.cloud.microsoft/exchange#/)
* In the upper right, click the terminal icon

<figure><img src="https://3968177484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDt9gEGwbp9ApiQAJP3hQ%2Fuploads%2F16PXDuq3YMP3wl2inO1g%2Fms365-email-9.png?alt=media" alt=""><figcaption><p>The terminal icon</p></figcaption></figure>

* If you are not on Powershell, click "Switch to Powershell"
* Connect to Exchange Online by inputting the following code:

`Connect-ExchangeOnline`

* Input the following restriction policy

{% hint style="info" %}
Be sure to replace the AppID variable with the Client ID copied earlier and the GroupEmail variable with email address you just created
{% endhint %}

````$appid
$GroupEmail = "dropzone-allowed-inboxes@mycompany.net"

New-ApplicationAccessPolicy -AppId $AppId `
    -PolicyScopeGroupId $GroupEmail `
    -AccessRight RestrictAccess `
    -Description "Restricts Dropzone to specific inboxes only"```

* To test that Dropzone can only access the desired mailboxes, input the following code:
```Test-ApplicationAccessPolicy -AppId $AppId -Identity "allowed-mailbox@example.com"```
```Test-ApplicationAccessPolicy -AppId $AppId -Identity "any-other-mailbox@example.com"```

Allowed mailboxes should result in Granted, while denied mailboxes should return Denied

If you have any errors, contact our Customer Success team.
````
