Before Server 2008R2, it used to be a pain to edit exchange mail attributes for users without using an exchange server in your environment. ADSI-edit and PowerShell were two tools you could use, but thankfully that has changed since 2012 provides easy access to the Advanced attributes right from the Properties of the user in Active Directory (AD). This how-to assumes you have no on-prem exchange servers anymore and you have DirSync setup properly with all your email users in Office 365.
Quick instructions for setting up a new Office 365 mailbox user in AD:
- Create the User (in AD)
- Right-click and go to Properties.
On the General Tab: Make sure the user’s email address is correct
On the Account Tab: Make sure the User Logon Name is the first part of their email address (for example first initial +last name). Then make sure the domain is correct. You want the domain to be their email address domain, not that of the local AD domain name if they are different. Then make sure User Logon Name for Pre Windows 2000 is the same as the other logon name, or as close to it as you can be while being unique within the organization.
- Set the Email Address Properties
- Click on Attribute Editor tab. Click on Filter and make sure you can see all attributes, not just those with values.
- Look for these properties and update the values accordingly:
proxyAddresses: SMTP:primary.email@domain for this user – SMTP needs to be in capitals. This is also where you would enter in any email aliases, just make sure they start with lowercase smtp:
NOTE: Both addresses need to be unique (within your directory). Attribute Editor will let you enter the same for both, but if you do then the user won’t properly replicate to Office 365 when DirSync runs.
- After that you can wait for another sync to run, or…you can do what I do and force one.
From the server containing DirSync, open up PowerShell and type “Import-Module DirSync” and enter. Then run Start-ADSyncSyncCycle. The DirSync status window in Office 365 Admin will tell you if it’s synced since you ran the command…shouldn’t take more than a minute.
NOTE: This does a full sync and will capture all changes. This makes sense for most environments, but if you’re concerned it may not be appropriate for yours, please consult the following document: https://azure.microsoft.com/en-us/documentation/articles/active-directory-aadconnectsync-feature-scheduler/
- Don’t forget to License the User for Exchange Online in Office 365. Their mailbox should be created soon after you do so and you’re all set.
- msExchHideFromAddressLists – Set to TRUE to hide from address lists
- For more, see http://blogs.technet.com/b/johnbai/archive/2013/09/11/o365-msexchangerecipienttypedetails.aspx