Vivek & Nino_Bilic
We are facing an issue where the Export-ActivityExplorerData cmdlet has recently stopped functioning when using app‑only authentication (CBA).
Our application is correctly configured with the Exchange.ManageAsApp and Security Reader roles and permissions.|
However, we are now encountering the following error both in local PowerShell sessions and within Azure Automation. Since the alternative method using the ‑Credential parameter is also being deprecated, we would like to understand whether Microsoft has recently enforced any change that blocks the use of Export-ActivityExplorerData with app‑only authentication.
$res = Export-ActivityExplorerData -StartTime $start -EndTime $end -Filter1 $flt1 -PageSize 100 -OutputFormat json
Write-ErrorMessage : |System.AggregateException|One or more errors occurred.
At C:\Users\kusanj\AppData\Local\Temp\tmpEXO_myjaxxmt.skb\tmpEXO_myjaxxmt.skb.psm1:1191 char:13
+ Write-ErrorMessage $ErrorObject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Export-ActivityExplorerData], AggregateException
+ FullyQualifiedErrorId : [RequestId=cd1a2cda-9c20-e221-e8f4-f655863f6f68,TimeStamp=Wed, 11 Mar 2026 05:21:22 GMT],Write-ErrorMessage
Could you please clarify if this is an intentional restriction by Microsoft and guide us on how to proceed for this specific scenario?