In an Exchange Hybrid environment with Microsoft Entra Connect (Azure AD Connect) directory synchronization, Exchange Online relies on three core Active Directory attributes on the on-premises user object to determine what kind of cloud mailbox, archive, or recipient type to provision:
msExchRemoteRecipientType(RemoteRecipientTypein Exchange PowerShell) — Bitmask indicating whether a cloud mailbox/archive is provisioned, migrated, deprovisioned, or converted to a Room, Equipment, or Shared mailbox.msExchRecipientDisplayType— Defines how the recipient appears in the Address Book and whether it is ACL-able (supports folder/delegate permissions across forests).msExchRecipientTypeDetails(RecipientTypeDetailsin PowerShell) — Identifies the exact Exchange object classification (UserMailbox,SharedMailbox,RemoteUserMailbox,RoomMailbox, etc.).
When a mailbox is migrated to Exchange Online or converted directly in the cloud (for example, converting a User Mailbox to a Shared Mailbox in the Exchange Admin Center without updating on-premises AD), mismatched values across these three attributes can cause hybrid free/busy failures, missing archives, or accidental mailbox deprovisioning.
How Exchange Hybrid Uses These Three Attributes
msExchRemoteRecipientType(e.g.4,100)msExchRecipientTypeDetails(e.g.2147483648)msExchRecipientDisplayType(e.g.-2147483642)
- Evaluates
In from AD - User Exchangerules - Requires
mailNicknamepopulated - Syncs cloud mailbox & archive flags to Entra ID
- Provisions User, Shared, Room, or Equipment Mailbox
- Enables or deprovisions Cloud Archive
- Maintains Hybrid Free/Busy & ACLs
1. msExchRemoteRecipientType Complete Reference Table
You will see msExchRemoteRecipientType populated in Active Directory whenever a mailbox is migrated from on-premises Exchange to Exchange Online or provisioned directly via New-RemoteMailbox / Enable-RemoteMailbox.
Because msExchRemoteRecipientType is a bitmask (1 = ProvisionMailbox, 2 = ProvisionArchive, 4 = Migrated, 8 = DeprovisionMailbox, 16 = DeprovisionArchive, 32 = RoomMailbox, 64 = EquipmentMailbox, 96 = SharedMailbox), the values combine additively:
| Decimal Value | RemoteRecipientType (PowerShell Value) | What It Means in Exchange Hybrid |
|---|---|---|
1 | ProvisionMailbox | Cloud User Mailbox provisioned via New-RemoteMailbox / Enable-RemoteMailbox |
2 | ProvisionArchive | On-Premises Primary Mailbox + Cloud (Exchange Online) Archive |
3 | ProvisionMailbox, ProvisionArchive | Cloud User Mailbox + Cloud Archive (both provisioned via Enable-RemoteMailbox) |
4 | Migrated | User Mailbox migrated from On-Premises Exchange to Exchange Online |
6 | ProvisionArchive, Migrated | Migrated User Mailbox + Cloud Archive enabled |
8 | DeprovisionMailbox | Cloud Mailbox deprovisioned |
10 | ProvisionArchive, DeprovisionMailbox | Cloud Mailbox deprovisioned, Cloud Archive retained |
16 | DeprovisionArchive | On-Premises Mailbox with Cloud Archive deprovisioned |
17 | ProvisionMailbox, DeprovisionArchive | Provisioned Cloud Mailbox with Cloud Archive disabled |
20 | Migrated, DeprovisionArchive | Migrated User Mailbox with Cloud Archive disabled |
24 | DeprovisionMailbox, DeprovisionArchive | Both Cloud Mailbox and Cloud Archive deprovisioned |
33 | ProvisionMailbox, RoomMailbox | Cloud Room Mailbox provisioned via New-RemoteMailbox -Room |
35 | ProvisionMailbox, ProvisionArchive, RoomMailbox | Provisioned Cloud Room Mailbox + Cloud Archive |
36 | Migrated, RoomMailbox | Room Mailbox migrated to Exchange Online |
38 | ProvisionArchive, Migrated, RoomMailbox | Migrated Room Mailbox + Cloud Archive |
49 | ProvisionMailbox, DeprovisionArchive, RoomMailbox | Provisioned Cloud Room Mailbox with Archive disabled |
52 | Migrated, DeprovisionArchive, RoomMailbox | Migrated Room Mailbox with Archive disabled |
65 | ProvisionMailbox, EquipmentMailbox | Cloud Equipment Mailbox provisioned via New-RemoteMailbox -Equipment |
67 | ProvisionMailbox, ProvisionArchive, EquipmentMailbox | Provisioned Cloud Equipment Mailbox + Cloud Archive |
68 | Migrated, EquipmentMailbox | Equipment Mailbox migrated to Exchange Online |
70 | ProvisionArchive, Migrated, EquipmentMailbox | Migrated Equipment Mailbox + Cloud Archive |
81 | ProvisionMailbox, DeprovisionArchive, EquipmentMailbox | Provisioned Cloud Equipment Mailbox with Archive disabled |
84 | Migrated, DeprovisionArchive, EquipmentMailbox | Migrated Equipment Mailbox with Archive disabled |
97 | ProvisionMailbox, SharedMailbox | Cloud Shared Mailbox provisioned via New-RemoteMailbox -Shared |
99 | ProvisionMailbox, ProvisionArchive, SharedMailbox | Provisioned Cloud Shared Mailbox + Cloud Archive |
100 | Migrated, SharedMailbox | Shared Mailbox migrated (or converted via Set-RemoteMailbox -Type Shared) |
102 | ProvisionArchive, Migrated, SharedMailbox | Migrated Shared Mailbox + Cloud Archive |
113 | ProvisionMailbox, DeprovisionArchive, SharedMailbox | Provisioned Cloud Shared Mailbox with Archive disabled |
116 | Migrated, DeprovisionArchive, SharedMailbox | Migrated Shared Mailbox with Archive disabled |
2. msExchRecipientDisplayType Reference Table
msExchRecipientDisplayType tells Outlook and Exchange whether an object is a local mailbox, a synced remote mailbox, a security group, or an ACL-able object (capable of being granted FullAccess or Folder permissions across hybrid boundaries).
| Display Type Description | msExchRecipientDisplayType (Decimal) | Exchange RecipientType Equivalent |
|---|---|---|
| Mailbox User | 0 | MailboxUser |
| Distribution Group | 1 | DistributionGroup |
| Public Folder | 2 | PublicFolder |
| Dynamic Distribution Group | 3 | DynamicDistributionGroup |
| Organization | 4 | Organization |
| Private Distribution List | 5 | PrivateDistributionList |
| Remote Mail User | 6 | RemoteMailUser |
| Conference Room Mailbox | 7 | ConferenceRoomMailbox |
| Equipment Mailbox | 8 | EquipmentMailbox |
| ACL-able Mailbox User | 1073741824 | ACLableMailboxUser |
| Security Distribution Group | 1073741833 | SecurityDistributionGroup |
| Synced Mailbox User (Remote User/Shared Mailbox) | -2147483642 | SyncedMailboxUser |
| Synced Universal Distribution Group (UDG) | -2147483391 | SyncedUDGasUDG |
| Synced UDG as Contact | -2147483386 | SyncedUDGasContact |
| Synced Public Folder | -2147483130 | SyncedPublicFolder |
| Synced Dynamic Distribution Group | -2147482874 | SyncedDynamicDistributionGroup |
| Synced Remote Mail User | -2147482106 | SyncedRemoteMailUser |
| Synced Conference Room Mailbox | -2147481850 | SyncedConferenceRoomMailbox |
| Synced Equipment Mailbox | -2147481594 | SyncedEquipmentMailbox |
| Synced Universal Security Group (USG) as UDG | -2147481343 | SyncedUSGasUDG |
| Synced USG as Contact | -2147481338 | SyncedUSGasContact |
| ACL-able Synced Mailbox User | -1073741818 | ACLableSyncedMailboxUser |
| ACL-able Synced Remote Mail User | -1073740282 | ACLableSyncedRemoteMailUser |
| ACL-able Synced USG as Contact | -1073739514 | ACLableSyncedUSGasContact |
| Synced USG as USG | -1073739511 | SyncedUSGasUSG |
Hybrid Permissions Tip: If an on-premises mailbox user cannot grant folder/calendar permissions to an Exchange Online user (or vice-versa), check that the remote mailbox'smsExchRecipientDisplayTypeis set to-1073741818(ACLableSyncedMailboxUser) rather than-2147483642.
3. msExchRecipientTypeDetails Reference Table
In on-premises Active Directory, this attribute is stored as msExchRecipientTypeDetails (a 64-bit integer bitmask). In Exchange PowerShell, it surfaces as RecipientTypeDetails.
| Object Type | msExchRecipientTypeDetails (Decimal) | RecipientTypeDetails (PowerShell) |
|---|---|---|
| User Mailbox | 1 | UserMailbox |
| Linked Mailbox | 2 | LinkedMailbox |
| Shared Mailbox | 4 | SharedMailbox |
| Legacy Mailbox | 8 | LegacyMailbox |
| Room Mailbox | 16 | RoomMailbox |
| Equipment Mailbox | 32 | EquipmentMailbox |
| Mail Contact | 64 | MailContact |
| Mail User | 128 | MailUser |
| Mail-Enabled Universal Distribution Group | 256 | MailUniversalDistributionGroup |
| Mail-Enabled Non-Universal Distribution Group | 512 | MailNonUniversalGroup |
| Mail-Enabled Universal Security Group | 1024 | MailUniversalSecurityGroup |
| Dynamic Distribution Group | 2048 | DynamicDistributionGroup |
| Public Folder | 4096 | PublicFolder |
| System Attendant Mailbox | 8192 | SystemAttendantMailbox |
| System Mailbox | 16384 | SystemMailbox |
| Cross-Forest Mail Contact | 32768 | MailForestContact |
| User (Not Mail-Enabled) | 65536 | User |
| Contact | 131072 | Contact |
| Universal Distribution Group | 262144 | UniversalDistributionGroup |
| Universal Security Group | 524288 | UniversalSecurityGroup |
| Non-Universal Group | 1048576 | NonUniversalGroup |
| Disabled User | 2097152 | DisabledUser |
| Microsoft Exchange | 4194304 | MicrosoftExchange |
| Arbitration Mailbox | 8388608 | ArbitrationMailbox |
| Mailbox Plan | 16777216 | MailboxPlan |
| Linked User | 33554432 | LinkedUser |
| Room List | 268435456 | RoomList |
| Discovery Mailbox | 536870912 | DiscoveryMailbox |
| Role Group | 1073741824 | RoleGroup |
| Remote User Mailbox (Hybrid) | 2147483648 | RemoteUserMailbox |
| Remote Room Mailbox (Hybrid) | 8589934592 | RemoteRoomMailbox |
| Remote Equipment Mailbox (Hybrid) | 17179869184 | RemoteEquipmentMailbox |
| Remote Shared Mailbox (Hybrid) | 34359738368 | RemoteSharedMailbox |
| Team Mailbox | 137438953472 | TeamMailbox |
4. Most Common Hybrid Scenarios & Attribute Combinations
When fixing an Active Directory user object whose mailbox was converted in Exchange Online (e.g., converted to a Shared Mailbox in the cloud without running Set-RemoteMailbox -Type Shared on-premises), use this quick-reference matrix to align all three attributes in AD:
| Hybrid Scenario | msExchRemoteRecipientType | msExchRecipientDisplayType | msExchRecipientTypeDetails |
|---|---|---|---|
| Remote User Mailbox (Provisioned) | 1 | -2147483642 | 2147483648 |
| Remote User Mailbox (Migrated) | 4 | -2147483642 | 2147483648 |
| Remote User Mailbox (Migrated + Archive) | 6 | -2147483642 | 2147483648 |
| Remote Shared Mailbox (Provisioned) | 97 | -2147483642 | 34359738368 |
| Remote Shared Mailbox (Migrated / Converted) | 100 | -2147483642 | 34359738368 |
| Remote Room Mailbox (Migrated) | 36 | -2147481850 | 8589934592 |
| Remote Equipment Mailbox (Migrated) | 68 | -2147481594 | 17179869184 |
5. PowerShell Script: Decode & Fix Exchange Hybrid AD Attributes
Use this PowerShell helper function in Active Directory to inspect, decode, or repair a user's Exchange Hybrid recipient attributes without memorizing 11-digit integers:
function Get-ADExchangeHybridRecipientState {
[CmdletBinding()]
param (
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[string]$Identity
)
process {
$User = Get-ADUser -Identity $Identity -Properties `
mail, mailNickname, targetAddress, msExchRemoteRecipientType, msExchRecipientDisplayType, msExchRecipientTypeDetails
$RemoteTypeMap = @{
1 = "ProvisionMailbox"
2 = "ProvisionArchive (On-Prem Primary)"
3 = "ProvisionMailbox, ProvisionArchive"
4 = "Migrated (UserMailbox)"
6 = "ProvisionArchive, Migrated"
33 = "ProvisionMailbox, RoomMailbox"
36 = "Migrated, RoomMailbox"
65 = "ProvisionMailbox, EquipmentMailbox"
68 = "Migrated, EquipmentMailbox"
97 = "ProvisionMailbox, SharedMailbox"
100 = "Migrated, SharedMailbox"
102 = "ProvisionArchive, Migrated, SharedMailbox"
}
$DetailsMap = @{
1 = "UserMailbox (On-Prem)"
4 = "SharedMailbox (On-Prem)"
16 = "RoomMailbox (On-Prem)"
32 = "EquipmentMailbox (On-Prem)"
128 = "MailUser"
2147483648 = "RemoteUserMailbox"
8589934592 = "RemoteRoomMailbox"
17179869184 = "RemoteEquipmentMailbox"
34359738368 = "RemoteSharedMailbox"
}
$RemoteVal = $User.msExchRemoteRecipientType
$DetailsVal = $User.msExchRecipientTypeDetails
[PSCustomObject]@{
SamAccountName = $User.SamAccountName
Mail = $User.mail
TargetAddress = $User.targetAddress
msExchRemoteRecipientType = $RemoteVal
RemoteRecipientMeaning = if ($null -ne $RemoteVal -and $RemoteTypeMap.ContainsKey([int]$RemoteVal)) { $RemoteTypeMap[[int]$RemoteVal] } else { "Custom/Bitmask ($RemoteVal)" }
msExchRecipientDisplayType = $User.msExchRecipientDisplayType
msExchRecipientTypeDetails = $DetailsVal
RecipientTypeMeaning = if ($null -ne $DetailsVal -and $DetailsMap.ContainsKey([long]$DetailsVal)) { $DetailsMap[[long]$DetailsVal] } else { "Unknown ($DetailsVal)" }
}
}
}
# Example 1: Decode a user's current Hybrid AD attributes
# Get-ADExchangeHybridRecipientState -Identity "sunil.chauhan"
# Example 2: Stamp On-Prem AD when a Migrated User Mailbox was converted to a Shared Mailbox in Exchange Online
# Set-ADUser -Identity "shared.hr" -Replace @{
# msExchRemoteRecipientType = 100
# msExchRecipientDisplayType = -2147483642
# msExchRecipientTypeDetails = 34359738368
# }