Exchange Online in App-only authentication mode: Error loading objects...

I've just switched the Exchange Online connector (9.2.1) from User account to App-only authentication
due to: https://azure.microsoft.com/en-us/updates/v2/enable-multifactor-authentication-for-your-tenant-by-15-october-2024
Used these instructions: https://learn.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps#set-up-app-only-authentication
Now when I start the object browser on an object class containing more then 1000 objects I get this error:

[1777009] Error loading system objects of class Mailbox (all) (Mailbox_Master).
[VI.Base.PowerShell.Runner.PipelineHasErrorsExeption] The following errors occured during execution:
Expired or Invalid pagination request. Default Expiry time is 00:30:00

This issue is not there when I switch back to the User account authentication.
Get-InstalledModule ExchangeOnlineManagement | select version = 3.2.0

Hoping someone else experienced this and found a solution?
Maybe a hotfix?

Regards,
Niels

Parents Reply
  • Update on this:
    So after updating the Exchange Online Posh module to 3.6.0 the synchronization now works without issues.

    But now proces O3E_UnifiedGroup_Update/Deactivate gets frozen:

    Set-OneIMUnifiedGroupMembers
    Parameters:
    -identity 9a7f95c7-c825-4bbf-bd6d-fc1870e72a61
    -Mode Modify
    -AddItems @(ef175561-bee3-46d2-9e2b-43173c2f16fc)
    -RemoveItems @()
    
    2024-10-09 08:55:01.1190 ERROR (ProjectorEngine 073c05b6-cad1-4d74-8af4-760a212fbc76 Job 4545d98a-627a-40f1-9cbb-a2e11e54e406) : Error running synchronization step (UnifiedGroup) of synchronization configuration (Provisioning (Exchange Online Waternet Amsterdam) (Provisioning)). VI.Base.ViException: Error running synchronization step (UnifiedGroup) of synchronization configuration (Provisioning (Exchange Online Waternet Amsterdam) (Provisioning)). ---> VI.Base.ViException: Method (Update (Update)) could not be run successfully. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> VI.Base.PowerShell.Runner.PipelineHasErrorsExeption: The following errors occured during execution:
    |Microsoft.Exchange.Net.AAD.AADException|We failed to update the group mailbox. Please try again later.
    at VI.Base.PowerShell.Runner.RunspaceUtils.Run(Runspace target, IPoshExecutionItem item, Int32 maxDeserDepth)

    Google search: Microsoft.Exchange.Net.AAD.AADException|We failed to update the group mailbox. Please try again later.
    https://forums.powershell.org/t/modify-ms-365-unified-group-membership-using-powershell-with-enterprise-app-authentication/22291
    https://learn.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps
    There you can read the following about the limitations of the ExchOnline posh module in app-only authentication mode:
    In Exchange Online PowerShell, you can't use the procedures in this article with the following Microsoft 365 Group cmdlets:
    New-UnifiedGroup
    Remove-UnifiedGroup
    Remove-UnifiedGroupLinks
    Add-UnifiedGroupLinks
    You can use Microsoft Graph to replace most of the functionality from those cmdlets. For more information, see Working with groups in Microsoft Graph.

    I will make support call for this.

Children