# Microsoft 365 - Walkthroughs

# Email Management

# Delete Email From All Mailboxes In Office 365

It is no secret that mail hygiene solutions are not 100% effective. Malicious messages still make their way through without being detected from time to time. In those times, you need to know how to find and delete email from all mailboxes in Office 365.

If you are an [Office 365](https://adamtheautomator.com/tag/office-365/) admin, you would be familiar with the situation described above. Spam or Phishing attacks are considered as critical security incidents. Needless to say, email admins must act quickly to minimize the potential threat to the users and the infrastructure.

You can click around in the Office 365 Security and Compliance portal to run a content search, but, to delete those contents, you need to use PowerShell. So, if you’ll end up using PowerShell anyway, why not do everything in PowerShell, right?

In this article, you will learn how to use the Security and Compliance PowerShell cmdlets to search and delete malicious messages from all Office 365 mailboxes.

## Requirements

Since this article is essentially a How-To, there are some requirements if you plan to follow along.

Your admin account must have enough [Office 365 permissions](https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/permissions-in-the-security-and-compliance-center?view=o365-worldwide) to search mailboxes and delete messages.  
– **Permission required to search mailboxes**: The account must be a member of the *eDiscovery Manager* role group or be assigned the *Compliance Search* management role.  
– **Permission required to delete messages**: The account must be a member of the *Organization Management* role group or be assigned the *Search And Purge* management role  
– **Permission required to preview messages**: The account must be a member of the *eDiscovery Manager* role group or be assigned the *Preview* management role  
PowerShell must be connected to the [Office 365 Security &amp; Compliance Center PowerShell](https://docs.microsoft.com/en-us/powershell/exchange/office-365-scc/office-365-scc-powershell?view=exchange-ps). Follow this link to [connect without MFA](https://docs.microsoft.com/en-us/powershell/exchange/office-365-scc/connect-to-scc-powershell/connect-to-scc-powershell?view=exchange-ps), or this link to [connect with MFA](https://docs.microsoft.com/en-us/powershell/exchange/office-365-scc/connect-to-scc-powershell/mfa-connect-to-scc-powershell?view=exchange-ps)

## Gathering Information About the Message to Delete

Before you start creating the content search for the message that needs to be deleted, you must gather all the pertinent information about the message first. Not unless all information is provided to you already.

Knowing as many details about the message as possible would help you decide how to formulate the search query. For example, some of the most basic information you need to get are:

- What is the sender’s email address?
- What is the message subject?
- Are there file attachments, and what are the filenames?
- What’s the date of the first reported occurrence?
- Who are the recipients?

In most cases, one or two of the information listed above should be sufficient to formulate a search query. Then, it is up to you to determine which of these search parameters would be most applicable.

## Creating and Running the Office 365 Email Content Search

When you’re satisfied that you have all the information you need about the message, it is time to fire up [PowerShell](https://adamtheautomator.com/tag/powershell/) and start creating the content search.

Suppose the spam/phishing message to delete has the following properties:

**Subject**: You must change your bank password now  
**Sent**: 05/12/2020  
Using the `New-ComplianceSearch`, the message properties listed above will be used to create a search query. The key to keeping the search results as accurate as possible depends on the adequately formulated search criteria.

The `New-ComplianceSearch` cmdlet comes with several parameters and switches. However, to create a mailbox content search, these are the parameters that will be used.

- `Name` – This accepts the name that will be assigned to the content search object. This can be any name, you don’t need to put too much thought into it.
- `ExchangeLocation` – This accepts that Exchange location that will be targeted by the search. This can be a group or a mailbox. In this article, the value to use is All to make sure to target all mailboxes in the search.
- `ContentMatchQuery` – This parameter is the main factor that will determine the search results’ accuracy. The query format that is accepted is in the form of a KQL or [Keyword Query Language](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference).

To create the content search, copy the code below and paste it into your PowerShell console. Make sure to change the parameter values as appropriate to your situation. In this example, the name of the search is Phish1, the query combines the subject and sent property values.

```
New-ComplianceSearch `
-Name Phish1 `
-ExchangeLocation All `
-ContentMatchQuery 'subject:"You must change your bank password now" AND sent:05/12/2020'
```

<div class="table-container" id="bkmrk-delete-email-from-al"><table><thead><tr><th>![1_new-compliancesearch.gif](https://wiki.mutschlerhome.com/walkthroughs/m365/1_new-compliancesearch.gif)</th></tr></thead><tbody><tr><td>*Delete Email From All Mailboxes In Office 365 : Creating a new content search*</td></tr></tbody></table>

</div>When you run the code above in PowerShell, you should see a similar output as demonstrated below.

At this point, the content search job has been created, but the search hasn’t been triggered yet according to the status (NotStarted).

To start the content search, use the `Start-ComplianceSearch` cmdlet. You need to supply the cmdlet with the parameter `-Identity` and specify the name of the content search job that you created.

To start the Office 365 email content search, copy the code below and paste it into your PowerShell console.

```
Start-ComplianceSearch -Identity Phish1
```

After running the code above, there will be no output on the screen. What you need to do next is to monitor the status of the search. To monitor the search status, use the code below in PowerShell.

```
Get-ComplianceSearch -Identity Phish1
```

When you run the code above, you should see a similar output as below. In the output below, it shows that the content search job status is Completed.

<div class="table-container" id="bkmrk-getting-the-content-"><table><thead><tr><th>![2_get-compliancesearch.gif](https://wiki.mutschlerhome.com/walkthroughs/m365/2_get-compliancesearch.gif)</th></tr></thead><tbody><tr><td>*Getting the content search status*</td></tr></tbody></table>

</div>You’ll notice from the output above that the returned properties are limited and it does not show you the number of found matches. You can run the command below to get all the properties of the content search result.

```
Get-ComplianceSearch -Identity Phish1 | Format-List *
```

After running the command above, you would see a similar result, as shown below. In this case, there are 16 items that matched the search criteria.

<div class="table-container" id="bkmrk-content-search-resul"><table><thead><tr><th>![3_untitled---2020-05-12t194629.webp](https://wiki.mutschlerhome.com/walkthroughs/m365/3_untitled---2020-05-12t194629.webp)</th></tr></thead><tbody><tr><td>*Content search results*</td></tr></tbody></table>

</div>## Previewing the Search Results (Optional)

Previewing the search results is an optional step, but recommended if you’re the type who’d rather err on the side of caution. You wouldn’t want to delete the wrong message from all mailboxes, would you?

So far, you’ve used the `New-ComplianceSearch`, `Start-ComplianceSearch` and `Get-ComplianceSearch` cmdlets to create, run, and monitor the content search. Now, to be able to preview the search results, you will need to use the `New-ComplianceSearchAction` cmdlet.

To preview the search results, you now need to create a preview action using the command below.

```
New-ComplianceSearchAction -SearchName Phish1 -Preview
```

As you can see in the output below, the preview job has been created with the name *Phish1\_Preview*, and the job is automatically started.

<div class="table-container" id="bkmrk-phish1_preview"><table><thead><tr><th>![4_new-compliancesearchaction.gif](https://wiki.mutschlerhome.com/walkthroughs/m365/4_new-compliancesearchaction.gif)</th></tr></thead><tbody><tr><td>*Phish1\_Preview*</td></tr></tbody></table>

</div>And when the creation of the preview is completed, you can get the results preview by running the command below to show the results on the screen.

```
(Get-ComplianceSearchAction Phish1_Preview | Select-Object -ExpandProperty Results) -split ","
```

And once you run the command above, you would get an output similar to the image shown below.

<div class="table-container" id="bkmrk-previewing-the-searc-2"><table><thead><tr><th>![5_untitled---2020-05-12t194657.webp](https://wiki.mutschlerhome.com/walkthroughs/m365/5_untitled---2020-05-12t194657.webp)</th></tr></thead><tbody><tr><td>*Previewing the search results*</td></tr></tbody></table>

</div>Let’s admit it, the results, as shown above, is ugly. However, you can export the results to a TXT if you prefer. Or, if you want a better-formatted report, you can [download the content search report from the Security and Compliance Center portal](https://wiki.mutschlerhome.com/en/Walkthroughs/Microsoft365/DownloadReportfromCompliancePortal).

<p class="callout info">Note: The Preview action does not expose the contents of the messages. It only shows the details of the message matching the search criteria and not what’s inside of each message.</p>

## Delete Email From All Mailboxes In Office 365

Now for the final act; running the Office 365 delete email action. Suppose that you’re already satisfied with the search results. You’re now ready to run the message deletion process.

To delete the messages that matched the search criteria, you need to create a purge job using the `New-ComplianceSearchAction` cmdlet with the `-Purge` switch and `-PurgeType` parameter.

The code to create the purge job is shown below. Copy the code and paste in PowerShell to run it.

```
New-ComplianceSearchAction -SearchName Phish1 -Purge -PurgeType SoftDelete
```

Note that the `-PurgeType SoftDelete` parameter/value would remove the messages and put them in the Deletions folder inside the Recoverable Items folder in the mailbox. This means that the message would still be recoverable if necessarry.

After running the code above, the purge job will be created and started.

<div class="table-container" id="bkmrk-create-the-message-p"><table><thead><tr><th>![6_purge_message.gif](https://wiki.mutschlerhome.com/walkthroughs/m365/6_purge_message.gif)</th></tr></thead><tbody><tr><td>*Create the message purge job*</td></tr></tbody></table>

</div>As you can see on the image below, the purge job is created with the name Phish1\_Purge, and it automatically started.

<div class="table-container" id="bkmrk-purge-job-is-created"><table><thead><tr><th>![7_untitled---2020-05-12t194728.webp](https://wiki.mutschlerhome.com/walkthroughs/m365/7_untitled---2020-05-12t194728.webp)</th></tr></thead><tbody><tr><td>*Purge job is created and started*</td></tr></tbody></table>

</div>When the purge is complete, you can view the final result using the command below.

```
Get-ComplianceSearchAction -Identity Phish1_Purge | Format-List
```

You would be presented with similar output, as shown below. In this example, there were 16 messages deleted, and none failed.

<div class="table-container" id="bkmrk-message-purge-job-is"><table><thead><tr><th>![8_untitled---2020-05-12t194741.webp](https://wiki.mutschlerhome.com/walkthroughs/m365/8_untitled---2020-05-12t194741.webp)</th></tr></thead><tbody><tr><td>*Message purge job is complete*</td></tr></tbody></table>

</div>And that’s it. You have successfully deleted the spam/phishing messages from all Office 365 mailbox.

## Conclusion

In this article, you learned how to use the Security and Compliance PowerShell [cmdlets](https://adamtheautomator.com/powershell-whatif/) to search and delete messages from all mailboxes in Office 365.

You’ve learned how to put together the details of the message to delete for refining search criteria. Refining the search criteria helps ensure that the results will be at the highest accuracy.

You also learned how to create and start the content searches, create a preview of the results, and ultimately purge the messages that matched the search criteria. Perhaps the best thing about all this is that you never had to leave PowerShell to accomplish these tasks!

With the knowledge you gained from this article, perhaps you can automate the entire search and delete workflow so that even your first-line agents can easily execute it. Maybe then, you will not have to be woken up from your much-needed sleep anymore.

[Original Article](https://wikipedia.mutschlerhome.com/attachments/16)

# Reports

# Download Email Report From Compliance Portal

Instead of exporting the full set of search results from a Content search in the Microsoft Purview compliance portal (or from a search that's associated with a Microsoft Purview eDiscovery (Standard) case), you can export the same reports that are generated when you export the actual search results.

When you export a report, the report files are downloaded to a folder on your local computer that has the same name as the Content Search, but that's appended with *\_ReportsOnly*. For example, if the Content Search is named *ContosoCase0815*, then the report is downloaded to a folder named *ContosoCase0815\_ReportsOnly*.

<p class="callout warning">Note: You MUST use Microsoft Edge to download this report. An EXE is generated that will only work with Edge, and no other browsers.</p>

1\. Go to [https://compliance.microsoft.com/](https://compliance.microsoft.com/)

2\. Click on **Content Search** in the left pane

![1_content_search.png](https://wiki.mutschlerhome.com/walkthroughs/m365/1_content_search.png)

3\. Click the report that was generated and click the **Actions** button within the new window that pops up

![2_generate_report.png](https://wiki.mutschlerhome.com/walkthroughs/m365/2_generate_report.png)

4\. Make sure "All items, excluding ones that have unrecognized format, are encrypted, or weren't indexed for other reasons" then click "**Generate Report**"

![3_export_report.png](https://wiki.mutschlerhome.com/walkthroughs/m365/3_export_report.png)

5\. The report will then be generated under the "**Export**" tab, click that and choose the report you just created. Once the new window opens, ensure you are using **Microsoft Edge**, then click on "**Download Report**". In this same dialog box, click the button below to **Copy to Clipboard**.

![4_export.png](https://wiki.mutschlerhome.com/walkthroughs/m365/4_export.png)

6\. You may be prompted to Open "Microsoft.Office.Client.Discovery.UnifiedExportTool". Click yes on this prompt.

![5_open.png](https://wiki.mutschlerhome.com/walkthroughs/m365/5_open.png)

7\. It will run a program and prompt you with a dialog for the **eDiscovery Export Tool**. In the top box, paste the string you copied to your clipboard in step 5, and selected a location to store your files in the bottom box.

![6_ediscovery.png](https://wiki.mutschlerhome.com/walkthroughs/m365/6_ediscovery.png)

[¶](https://wiki.mutschlerhome.com/en/Walkthroughs/Microsoft365/DownloadReportfromCompliancePortal#h-8-you-can-then-open-the-location-you-chose-to-store-these-files-and-there-will-be-a-file-called-resultscsv-that-you-can-open-and-display-your-export)8. You can then open the location you chose to store these files, and there will be a file called **Results.csv** that you can open and display your export.

# Group Management

# Manage Who Can Create Microsoft 365 Groups

<nav aria-label="In this article" class="doc-outline display-none-print margin-bottom-sm" data-bi-name="intopic toc" id="bkmrk-in-this-article-lice" role="navigation">## In this article

1. [Licensing requirements](https://learn.microsoft.com/en-us/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwide#licensing-requirements)
2. [Step 1: Create a group for users who need to create Microsoft 365 groups](https://learn.microsoft.com/en-us/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwide#step-1-create-a-group-for-users-who-need-to-create-microsoft-365-groups)
3. [Step 2: Run PowerShell commands](https://learn.microsoft.com/en-us/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwide#step-2-run-powershell-commands)
4. [Step 3: Verify that it works](https://learn.microsoft.com/en-us/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwide#step-3-verify-that-it-works)
5. [Related topics](https://learn.microsoft.com/en-us/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwide#related-topics)

</nav>By default, all users can create Microsoft 365 groups. This is the recommended approach because it allows users to start collaborating without requiring assistance from IT.

If your business requires that you restrict who can create groups, you can restrict Microsoft 365 Groups creation to the members of a particular Microsoft 365 group or security group.

If you're concerned about users creating teams or groups that don't comply with your business standards, consider requiring users to complete a training course and then adding them to the group of allowed users.

<p class="callout warning">When you limit who can create a group, it affects all services that rely on groups for access, including: Outlook, SharePoint, Viva Engage, Microsoft Teams, Planner, Power BI (classic), Project for the web / Roadmap</p>

The steps in this article won't prevent members of certain roles from creating Groups. Microsoft 365 global admins can create groups via the Microsoft 365 admin center, Planner, Exchange, and SharePoint, but not other locations such as Teams. Other roles can create Microsoft 365 Groups via limited means, listed below.

- Exchange Administrator: Exchange admin center, Microsoft Entra ID
- Partner Tier 1 Support: Microsoft 365 admin center, Exchange admin center, Microsoft Entra ID
- Partner Tier 2 Support: Microsoft 365 admin center, Exchange admin center, Microsoft Entra ID
- Directory Writers: Microsoft Entra ID
- Groups Administrator: Microsoft Entra ID
- SharePoint Administrator: SharePoint admin center, Microsoft Entra ID
- Teams Service Administrator: Teams admin center, Microsoft Entra ID
- User Administrator: Microsoft 365 admin center, Microsoft Entra ID

If you're a member of one of these roles, you can create Microsoft 365 Groups for restricted users, and then assign the user as the owner of the group.

## Licensing requirements

To manage who creates groups, the following people need Microsoft Entra ID P1 or P2 licenses or Microsoft Entra Basic EDU licenses assigned to them:

- The admin who configures these group creation settings
- The members of the group who are allowed to create groups

<p class="callout info"> Note: See [Assign or remove licenses in the Microsoft Entra admin center](https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/license-users-groups) for more details about how to assign Azure licenses.</p>

The following people don't need Microsoft Entra ID P1 or P2 or Microsoft Entra Basic EDU licenses assigned to them:

- People who are members of Microsoft 365 groups and who don't have the ability to create other groups.

## Step 1: Create a group for users who need to create Microsoft 365 groups

Only one group in your organization can be used to control who is able to create Microsoft 365 Groups. But, you can nest other groups as members of this group.

Admins in the roles listed above do not need to be members of this group: they retain their ability to create groups.

1. In the admin center, go to the [Groups page](https://admin.microsoft.com/adminportal/home#/groups).
2. Click on **Add a Group**.
3. Choose the group type you want. Remember the name of the group! You'll need it later.
4. Finish setting up the group, adding people or other groups who you want to be able to create groups as members (not owners).

For detailed instructions, see [Create, edit, or delete a security group in the Microsoft 365 admin center](https://learn.microsoft.com/en-us/microsoft-365/admin/email/create-edit-or-delete-a-security-group?view=o365-worldwide).

## Step 2: Run PowerShell commands

You must use the preview version of [Azure Active Directory PowerShell for Graph (AzureAD)](https://learn.microsoft.com/en-us/powershell/azure/active-directory/install-adv2) (module name **AzureADPreview**) to change the group-level guest access setting:

- If you haven't installed any version of the Azure AD PowerShell module before, see [Installing the Azure AD module](https://learn.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?preserve-view=true&view=azureadps-2.0-preview) and follow the instructions to install the public preview release.
- If you have the 2.0 general availability version of the Azure AD PowerShell module (AzureAD) installed, you must uninstall it by running `Uninstall-Module AzureAD` in your PowerShell session, and then install the preview version by running `Install-Module AzureADPreview`.
- If you have already installed the preview version, run `Update-Module AzureADPreview` to make sure it's the latest version of this module.

Copy the script below into a text editor, such as Notepad, or the [Windows PowerShell ISE](https://learn.microsoft.com/en-us/powershell/scripting/components/ise/introducing-the-windows-powershell-ise).

Replace *&lt;GroupName&gt;* with the name of the group that you created. For example:

`$GroupName = "Group Creators"`

Save the file as GroupCreators.ps1.

In the PowerShell window, navigate to the location where you saved the file (type "CD &lt;FileLocation&gt;").

Run the script by typing:

`.\GroupCreators.ps1`

and [sign in with your administrator account](https://learn.microsoft.com/en-us/microsoft-365/enterprise/connect-to-microsoft-365-powershell?view=o365-worldwide#step-2-connect-to-azure-ad-for-your-microsoft-365-subscription) when prompted.

<div class="codeHeader" data-bi-name="code-header" id="bkmrk-powershell"><span class="language">PowerShell</span><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
</div></div>```
"
$AllowGroupCreation = $False

Connect-AzureAD

$settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id
if(!$settingsObjectID)
{
    $template = Get-AzureADDirectorySettingTemplate | Where-object {$_.displayname -eq "group.unified"}
    $settingsCopy = $template.CreateDirectorySetting()
    New-AzureADDirectorySetting -DirectorySetting $settingsCopy
    $settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id
}

$settingsCopy = Get-AzureADDirectorySetting -Id $settingsObjectID
$settingsCopy["EnableGroupCreation"] = $AllowGroupCreation

if($GroupName)
{
  $settingsCopy["GroupCreationAllowedGroupId"] = (Get-AzureADGroup -SearchString $GroupName).objectid
} else {
$settingsCopy["GroupCreationAllowedGroupId"] = $GroupName
}
Set-AzureADDirectorySetting -Id $settingsObjectID -DirectorySetting $settingsCopy

(Get-AzureADDirectorySetting -Id $settingsObjectID).Values
" style="box-sizing: inherit; outline-color: inherit; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 1em; direction: ltr; border: 0px; padding: 0px; line-height: 1.3571; display: block; position: relative;">$GroupName = "<GroupName>"
$AllowGroupCreation = $False

Connect-AzureAD

$settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id
if(!$settingsObjectID)
{
    $template = Get-AzureADDirectorySettingTemplate | Where-object {$_.displayname -eq "group.unified"}
    $settingsCopy = $template.CreateDirectorySetting()
    New-AzureADDirectorySetting -DirectorySetting $settingsCopy
    $settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id
}

$settingsCopy = Get-AzureADDirectorySetting -Id $settingsObjectID
$settingsCopy["EnableGroupCreation"] = $AllowGroupCreation

if($GroupName)
{
  $settingsCopy["GroupCreationAllowedGroupId"] = (Get-AzureADGroup -SearchString $GroupName).objectid
} else {
$settingsCopy["GroupCreationAllowedGroupId"] = $GroupName
}
Set-AzureADDirectorySetting -Id $settingsObjectID -DirectorySetting $settingsCopy

(Get-AzureADDirectorySetting -Id $settingsObjectID).Values

```

The last line of the script will display the updated settings:

![Screenshot of PowerShell script output.](https://learn.microsoft.com/en-us/microsoft-365/media/952cd982-5139-4080-9add-24bafca0830c.png?view=o365-worldwide)

If in the future you want to change which group is used, you can rerun the script with the name of the new group.

If you want to turn off the group creation restriction and again allow all users to create groups, set $GroupName to "" and $AllowGroupCreation to "$true" and rerun the script.

## Step 3: Verify that it works

Changes can take thirty minutes or more to take effect. You can verify the new settings by doing the following:

1. Sign in to Microsoft 365 with a user account of someone who should NOT have the ability to create groups. That is, they are not a member of the group you created or an administrator.
2. Select the **Planner** tile.
3. In Planner, select **New Plan** in the left navigation to create a plan.
4. You should get a message that plan and group creation is disabled.

Try the same procedure again with a member of the group.

<p class="callout info">Note: If members of the group aren't able to create groups, check that they aren't being blocked through their [OWA mailbox policy](https://learn.microsoft.com/en-us/powershell/module/exchange/set-owamailboxpolicy).</p>

## Related topics

[Collaboration governance planning recommendations](https://learn.microsoft.com/en-us/microsoft-365/solutions/collaboration-governance-overview?view=o365-worldwide#collaboration-governance-planning-recommendations)

[Create your collaboration governance plan](https://learn.microsoft.com/en-us/microsoft-365/solutions/collaboration-governance-first?view=o365-worldwide)

[Getting started with Office 365 PowerShell](https://learn.microsoft.com/en-us/microsoft-365/enterprise/getting-started-with-microsoft-365-powershell?view=o365-worldwide)

[Set up self-service group management in Microsoft Entra ID](https://learn.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-self-service-management)

[Set-ExecutionPolicy](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy)

[Microsoft Entra cmdlets for configuring group settings](https://learn.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-settings-cmdlets)

# Configuration

# Forward Emails to Solar Winds Service Desk

1. Create the new shared mailbox within the [Admin console](https://wiki.mutschlerhome.com/en/Walkthroughs/Microsoft365/admin.microsoft.com).
2. Within [ServiceDesk](https://support.pinionglobal.com/), create the category that will be used for categorization of tickets.

<div class="table-container" id="bkmrk-categories"><table><thead><tr><th>![1_-_create_category.png](https://wiki.mutschlerhome.com/walkthroughs/m365/solarwindsservicedesk/1_-_create_category.png)</th></tr></thead><tbody><tr><td>*Categories*</td></tr></tbody></table>

</div>3. Once the category is created, click the pencil icon to edit it and create an `Email Dropbox`. Copy the email address in here for later and click the save button.

<div class="table-container" id="bkmrk-email-dropbox"><table><thead><tr><th>![2_-_create_email_dropbox.png](https://wiki.mutschlerhome.com/walkthroughs/m365/solarwindsservicedesk/2_-_create_email_dropbox.png)</th></tr></thead><tbody><tr><td>*Email Dropbox*</td></tr></tbody></table>

</div>4. Go back to the [Admin Console](https://wiki.mutschlerhome.com/en/Walkthroughs/Microsoft365/admin.microsoft.com), click the mailbox you created in step 1, click edit on the `Email Forwarding` edit button, check the box to enable forwarding, and paste the email address you received from step 3. Make sure to also unceck `Keep a copy of forwarded email in this mailbox` unless you want to still receive emails in this shared mailbox for testing.

<div class="table-container" id="bkmrk-email-forwarding"><table><thead><tr><th>![3-_mailbox_forwarding.png](https://wiki.mutschlerhome.com/walkthroughs/m365/solarwindsservicedesk/3-_mailbox_forwarding.png)</th></tr></thead><tbody><tr><td>*Email Forwarding*</td></tr></tbody></table>

</div>5. From here, go to the [Security Portal](https://security.microsoft.com/), click `Policies & Rules`, `Threat Policies`, `Anti-Spam Policies`, and click the rule called `Auto Forwarding Allowed`.

<div class="table-container" id="bkmrk-anti-spam-policies"><table><thead><tr><th>![4-_anti-spam_policies.png](https://wiki.mutschlerhome.com/walkthroughs/m365/solarwindsservicedesk/4-_anti-spam_policies.png)</th></tr></thead><tbody><tr><td>*Anti-Spam Policies*</td></tr></tbody></table>

</div>6. Once inside the rule labeled `Auto Forwarding Allowed`, scroll to the bottom to find the link for `Edit users, groups, and domains`, and click this.

<div class="table-container" id="bkmrk-auto-forwarding-allo"><table><thead><tr><th>![5-_auto_forwarding_allowed.png](https://wiki.mutschlerhome.com/walkthroughs/m365/solarwindsservicedesk/5-_auto_forwarding_allowed.png)</th></tr></thead><tbody><tr><td>*Auto Forwarding Allowed*</td></tr></tbody></table>

</div>7. Within this menu, click on the `Users` field, and enter the email address for the shared mailbox that was created in step 1. Once you've verified the email address is at the bottom of the list, click the save button.

<div class="table-container" id="bkmrk-edit-users"><table><thead><tr><th>![6-_edit_users.png](https://wiki.mutschlerhome.com/walkthroughs/m365/solarwindsservicedesk/6-_edit_users.png)</th></tr></thead><tbody><tr><td>*Edit Users*</td></tr></tbody></table>

</div>8. Test your alerts to make sure they work. If they do, a ticket should be generated in ServiceDesk under the category you assigned it.

# Teams

# Team Missing From Teams Admin Center

## **Cause:**

An attribute on the underlying modern group isn't correctly populated.

Replace {​groupid}​ in the Query for the actual GroupId in question, which you can get via the Exchange Online powershell, with the "Get-UnifiedGroup" cmdlet, as the "ExternalDirectoryObjectId" attribute or by looking the group up within Entra.

1\. Access [Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer)

2\. Sign in to Graph Explorer on the top right-hand side menu:

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/scaled-1680-/HFTg3V77zWD2GhZB-image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/HFTg3V77zWD2GhZB-image.png)

3\. Change the query line to: PATCH &gt; v1.0 &gt; [https://graph.microsoft.com/v1.0/groups/{​groupid}​](https://graph.microsoft.com/v1.0/groups/%7Bgroupid%7D "https://graph.microsoft.com/v1.0/groups/%7bgroupid%7d")

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/scaled-1680-/ApnbMwi61jnennKX-image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/ApnbMwi61jnennKX-image.png)

4\. Click the Modify Permissions tab and consent to any permissions required (you do not need to consent for the whole organization).

[![Screenshot 2024-03-22 112118.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/scaled-1680-/KPO1td8NiF4FOm4A-screenshot-2024-03-22-112118.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/KPO1td8NiF4FOm4A-screenshot-2024-03-22-112118.png)

5\. Add the following value on the request body: {​"resourceProvisioningOptions": \["Team"\]}​

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/scaled-1680-/oK72IBrNRkZFtK8X-image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/oK72IBrNRkZFtK8X-image.png)

6\. Confirm you receive a 204 response in the middle of the page.

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/scaled-1680-/lW5hJGpEwUzQ68sQ-image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/lW5hJGpEwUzQ68sQ-image.png)

7\. Confirm the team appears correctly back on the Skype &amp; Teams Admin Center - Team Overview.

[![image.png](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/scaled-1680-/pvU9m34plL8PGcYV-image.png)](https://wikipedia.mutschlerhome.com/uploads/images/gallery/2024-03/pvU9m34plL8PGcYV-image.png)