Skip to main content

Disabling automatic creation of direct reports groups

By April 8, 2023No Comments

Starting in April 2017, Office 365 will start with automatically creating direct reports groups in Outlook if you have managers with 2 to 20 direct reports. Depending on the size of your company this feature can create a lot of private Outlook groups, and it’s on by default! The groups will be named “<Manager’s Name>’s direct reports

Disabling the auto provisioning of Direct Reports in Office 365

You can only disable it with Powershell. Therefore you need to connect to connect to Exchange Online. Use the code below or this script

1.  $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user, $pass
2.  $O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $cred -Authentication Basic -AllowRedirection
3.  Import-PSSession $O365Session

Check the status of the DirectReportsGroupAutoCreationEnabled flag for you tenant:

1.  Get-OrganizationConfig | fl GroupsCreationEnabled,DirectReportsGroupAutoCreationEnabled

If they both return true, then the auto creation is enabled for your tenant.
To turn if off, set the DirectReportsGroupAutoCreationEnabled flag to false

1.  Set-OrganizationConfig -DirectReportsGroupAutoCreationEnabled $false

What are the requirements for auto creation of Direct Reports groups?

To get automatically direct reports groups for manager there are a few requirements:

  • Office 365 Groups creation must be enabled
  • The manager must have permission to create an Office 365 Group
  • The manager’s mailbox must be older than 30 days
  • The manager’s and direct reports mailboxes must be in Exchange Online and not hidden from the GAL
  • The “Manager” field of an employee (direct report) must be populated

Get a list of Automatically created groups

All direct report groups will have a display name of “<Manager’s Name>’s direct reports“. You can use Powershell to get all those groups because they have a special property called “Groupsona:AutoDirectReports“. To find them run this cmdlet:

1.  Get-UnifiedGroup -ResultSize Unlimited | Where-Object {$_.GroupPersonification -eq 'Groupsona:AutoDirectReports'} | Select-Object id,Alias,PrimarySmtpAddress,ManagedByDetails | fl