Ask Learn Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Contacts are people outside of your organization that you would like everyone to be able to find. You can use these contacts for sending emails to these external parties. In Exchange Online organizations, mail contacts are mail-enabled objects that contain information about people who exist outside your organization. Each mail contact has an external email address, but the mail contact is visible in your organization's shared address book (also known as the global address list or GAL) and other address lists.
Mail contacts are different from mail users:
Organizations can use mail contacts in various scenarios. For example, when you need to send email to someone outside of your organization, but you don't want to create a user account for them in your organization's directory. You can also create a mail contact for a vendor, a customer, or a partner, and then use that contact to send them email.
Organizations can manage mail contacts in the Microsoft 365 admin center, in both the new and classic Exchange admin center (EAC), and in Exchange Online PowerShell. This training examines contact management using the Microsoft 365 admin center and PowerShell. For instruction on using the EAC, see Manage mail contacts in Exchange Online.
You must have the necessary permissions to create mail contacts in the Microsoft 365 admin center The required permissions can come from the Global Administrator, or one of the following roles:
If you don't have the necessary permissions, you can't create mail contacts in the Microsoft 365 admin center. You can either request the required permissions from an administrator in your organization, or ask them to create the mail contacts on your behalf. If you need to manage who can create Contacts, consider configuring a group for users with the necessary permissions.
Perform the following steps to create mail contacts in the Microsoft 365 admin center:
Note
After adding a contact, you should allow 30 minutes for the changes to take effect.
Perform the following steps to remove a mail contact in the Microsoft 365 admin center:
Note
The Microsoft 365 admin center doesn't allow bulk edit or removal of mail contacts yet. You must complete bulk editing of mail contacts using either the classic EAC or Exchange Online PowerShell. For instruction on how to bulk edit using the classic EAC, see Manage mail contacts in Exchange Online.
This example creates a mail contact for Debra Garcia using the Exchange Online PowerShell module.
New-MailContact -Name "Debra Garcia" -ExternalEmailAddress dgarcia@tailspintoys.com -Alias dgarcia
For detailed syntax and parameter information, see New-MailContact.
In general, use the Get-Contact and Set-Contact cmdlets to view and change organization and contact information properties. Use the Get-MailContact and Set-MailContact cmdlets to view or change mail-related properties. For example, email addresses, the MailTip, custom attributes, and whether the system hides the contact from address lists.
For more information, see the following articles:
The following examples show how you can change mail contact properties using Exchange Online PowerShell:
This example configures the Title, Department, Company, and Manager properties for the mail contact Allan Deyoung.
Set-Contact "Allan Deyoung" -Title Consultant -Department "Public Relations" -Company Fabrikam -Manager "Alex Wilber"
This example sets the CustomAttribute1 property to a value of PartTime for all mail contacts and hides them from the organization's address book.
$Contacts = Get-MailContact -Resultsize unlimited
$Contacts | foreach {Set-MailContact -Identity $_ -CustomAttribute1 PartTime -HiddenFromAddressListsEnabled $true}
This example sets the CustomAttribute15 property to a value of TemporaryEmployee for all mail contacts in the Public Relations department.
$PR = Get-Contact -ResultSize unlimited -Filter "Department -eq 'Public Relations'"
$PR | foreach {Set-MailContact -Identity $_ -CustomAttribute15 TemporaryEmployee}
To remove a mail contact, run the following command:
Remove-MailContact -Identity <MailUserIdentity>
This example removes the mail contact for Nestor Wilke:
Remove-MailContact -Identity "Nestor Wilke"
Having an issue? We can help!
Please sign in to use this experience.
Sign in