Archive Mailbox - can't create - 365 says a cloud account is a hybrid account

Dan Klobnak 21 Reputation points

Odd issue.
365 tenant. Long time deployed. There is a mix of AD Sync users and cloud based (I know I know - but we deal with the hand we are dealt with).

wanted to enable archive mailbox for a few user mailboxes.

In Exchange online portal selected mailbox and archive.
Received error

"Enable-Mailbox: The following error occurred during validation in agent 'Windows LiveId Agent': 'Can't enable the archive for 'redacted username' because this user object is synchronized with the on-premises directory. To enable a cloud-based archive mailbox for this user, you must use your on-premises Exchange admin center or Exchange Management Shell.'"

Thought odd as for other ADSync users in past never had to address on-Prem.

Same results via PS with
Enable-Mailbox -Identity <redacted> -Archive

Go to AD, and the user is not within AD
Back in 365 I see the user is cloud based.
Thinking mailbox may have been on-prem at one time and possible some issue from a conversion to cloud (it happens), within PS-session with 365

Ran the following:
Get-AzureADUser -Filter "userPrincipalName eq ''" | select displayname, dirsyncenabled,immutableID

DisplayName DirSyncEnabled ImmutableId



No gremlins, but just For fun, I ran
Set-MSOLUser -UserPrincipalName <redacted> -ImmutableID "$null"

Same results - could not create an archive mailbox.
I went to another 'cloud based' account, same issue.

Ironically, I selected an AD Sync'd account and was able to enable to archive mailbox within tenant without issue (no need to do anything on-prem either)(

Personally I think it is something on MS side (often has been in the past till the dust settles on some changes), or an unintended consequence from some change. Basically have not seen errors in past starting with
"The following error occurred during validation in agent 'Windows LiveId Agent'..."
and research points to more recent (ie 2022) postings.

Any ideas, or thoughts?

Thank you. Dan

Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,802 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dan Klobnak 21 Reputation points

    Well it appears to be related to licensing. I am going to test this out. They have F3 licenses, which includes Exchange Online Kiosk so no archive. Thank you MS for having misguiding error messages...recommend "we have no idea" if this is the best you can do.

  2. Amit Singh 4,771 Reputation points

    In Hybrid, your on-prem system still controls the majority of the settings.
    So enable the Archive in ECP on-prem. It is located in the mailbox settings. Just select a user to enable. It will sync up to 365 then.

    You can also enable it in Powershell
    Enable-RemoteMailbox -Identity "MailboxName" -Archive

    0 comments No comments