Site icon Office 365 for IT Pros

Stopping New Employees Appearing in Org-Wide Teams

Advertisements

Adding New Employees to Org-Wide Teams

If your Microsoft 365 tenant has fewer than 10,000 accounts, a few minutes after you create an Azure AD account for a new employee, the account is added to the membership of any org-wide teams in the tenant. If your company provisions Azure AD accounts for new employees in advance of their joining date as part of a HR onboarding process, you might not want this to happen because you don’t want other employees to know that someone is joining the company. In this case, you can either:

Figure 1: Masking details of a new employee when adding their Office 365 account

Soon afterwards, the new employee shows up in the information pane for the org-wide teams active in the organization (Figure 2). As you can see, no one can discover exactly who the new employee really is.

Figure 2: Disguising the name of a new employee in an org-wide team

Update Account After the Employee Joins

You then update the display name and SMTP address after the new employee is active within the company. We also update the mailbox name and alias to match the employee’s actual name. Finally, because Microsoft 365 creates the User Principal Name (UPN) for a new account based on its SMTP address, we need to update the UPN to allow the user to sign-in correctly. The update is easily done with PowerShell:

Set-Mailbox -Identity NewEmployee5July2019 -DisplayName "Jake Adams" -WindowsEmailAddress "Jake.Adams@Office365itpros.com" -Alias "Jake.Adams" -Name "Jake Adams"
Update-MgUser -UserId (Get-Mailbox -Identity Jake.Adams).ExternalDirectoryObjectId -UserPrincipalName Jake.Adams@office365itpros.com

There’s no need to retain the dummy SMTP address as it was never used to send outbound email. Any messages delivered to the mailbox before the employee became active will be waiting there for them.

The DIY Option

If this arrangement doesn’t work, consider using all-employee teams whose membership is updated manually. It is easy to script additions and removals of employees from membership as part of the HR onboarding or leaving processes.


Need to know more about managing Teams or Office 365 in general? Look no further than the Office 365 for IT Pros eBook, which is packed full of interesting and useful tips like this.

Exit mobile version