The Get-MgUserOutlookMasterCategory cmdlet retrieves a list of Outlook categories defined in a user’s mailbox. These categories are color-coded labels that help organize emails, calendar events, and tasks in Microsoft Outlook and across Microsoft 365.
This cmdlet helps administrators and users manage and audit Outlook categories across mailboxes. It’s especially useful for:
By integrating this cmdlet into scripts, admins can monitor or export category configurations for compliance or user experience optimization.
Before running this cmdlet, install the Microsoft Graph PowerShell module and connect to Microsoft Graph with the required permissions:
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "MailboxSettings.Read"
Use the -UserId parameter to specify the mailbox from which to retrieve Outlook categories.
Get-MgUserOutlookMasterCategory -UserId <String>
This cmdlet can also be used in combination with other Outlook-related Graph cmdlets to analyze category usage or maintain consistency across users.
This command retrieves all Outlook categories configured for the specified user.
Get-MgUserOutlookMasterCategory -UserId "user@domain.com"
To retrieve details of a particular category, provide both the UserId and CategoryId.
Get-MgUserOutlookMasterCategory -UserId "user@domain.com" -CategoryId "categoryId"
| Key Point | Details |
|---|---|
| Cmdlet Name | Get-MgUserOutlookMasterCategory |
| Purpose | Retrieves Outlook category details for a user’s mailbox |
| Required Scope | MailboxSettings.Read |
| Primary Parameter | UserId, CategoryId |
| Automation Benefit | Enables bulk reporting and category audits across users |
| Use Case | Maintaining category uniformity and analyzing mailbox configurations |
Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.
Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.
© Your Site Name. All Rights Reserved. Design by HTML Codex