Using AuthoritativeNull to overwrite an msExchMailboxGuid

5/5 - (2 votes)

While working on a unique tenant-to-tenant migration, we were going to be synchronizing a significant number of identities that had already been hybrid moved to a tenant from an on-premises Exchange organization.

Since they had existing values in msExchMailboxGuid, there was a likelihood that they might not be synchronized as just user identities–even though they were set with the msExchRecipientDisplayType of 6 (RemoteMailUser) and msExchRecipientTypeDetails of 128 (MailUser). For a full list of Exchange recipient values, see this blog post.

To prevent that from derailing our plans, I decided to put a rule in to prevent the msExchangeMailboxGuid from synchronizing to the new tenant (or wiping out any value that had already been sent in error).

  1. Launch Synchronization Rules Editor.
  2. Under Direction, select Inbound and then click Add rule.
  3. Enter a Name for the rule and a Description.
  4. Populate the following values:

    • Connected System: On-premises AD
    • CS Object Type: User
    • MV Object Type: person
    • Link Type: Join
    • Precedence: lower than 100 (where the default rules start)
  5. Click Next.
  6. Configure a scoping filter if necessary and click Next.
  7. Do not configure any join rules. Click Next.
  8. Click Add transformation.
    A screenshot of a computer Description automatically generated with medium confidence

    • FlowType: Expression
    • Target Attribute: msExchMailboxGuid
    • Source: AuthoritativeNull
    • Apply Once: [unchecked]
    • Merge Type: Update
  9. Click Save/Add.

After a successful full synchronization, identities will be configured as MailUsers and can be successfully licensed (and mailbox-enabled) for a smooth tenant-to-tenant experience.