# Microsoft Security Group

## Microsoft Mail-Enabled 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://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-8e81be022331d283d16c55892fbac82118f3ba95%2Fms365-email-1.png?alt=media" alt=""><figcaption><p>Click "Groups"</p></figcaption></figure>

* Click "Add a group"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-aeea13888e6e4bed2a809a647ba09c886e0e464e%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://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-90764f4584c115259cfcaecdcac85e6a95f3b54d%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://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-06057778e3f0a354ddbf26a128446ff38c822f16%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://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-b99e5d3f3f47973bc184774fe30674dc4b298131%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://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-ea63c6cea3fd236f294ff4963a27e3108057d159%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://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-effb8aa074aa8dbc2cf2ffd54bf4454286fb0d53%2Fms365-email-7.png?alt=media" alt=""><figcaption><p>Configure the group email address</p></figcaption></figure>

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

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](https://gitlab.com/dropzone-ai/docs-gitbook/-/blob/main/docs.dropzone.ai/docs/integrations/alert/ms_alert/readme.md) 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://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-b5db407921bdbb4b01d8a7d85717f224975eb2e7%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, engage your DropzoneAI support representative.
````
