Site icon Cybertek Defense

Creating Users in Office 365 Hybrid Setup

This walkthrough will describe how to create both mailboxes and mail contacts in Office 365.  Distribution groups can be created to forward emails to an external address.

Create a Mailbox:

Start-ADSyncSyncCycle -PolicyType Delta

Create a Mail Contact in O365:  Use this if the user does not need access to an On-Prem distribution group.

If there is already a mail contact for a user, you can verify if there is an @rcri-inc.com domain attached to the user.

Get-MailContact -Identity “Test User” | Format-List
$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session -DisableNameChecking
Set-MailContact –Identity "John Doe" –EmailAddresses SMTP:jdoe@rcri-inc.com,jdoe@hotmail.com

Create a Mail Contact in On-Prem: Use this if the user needs access to an On-Prem distribution group.

Create Distribution Group:

There are currently two ways to make groups to forward emails to users.  In Office 365, under exchange admin center, the groups tab will create a group using new features of Office 365 (such as file sharing and other collaborative tools).  The other way is to create a distribution group that just forwards emails to external users without such features.

Exit mobile version