Forum Discussion

mrityunjay6492's avatar
mrityunjay6492
Copper Contributor
Jul 24, 2025
Solved

Accessing Content explorer data via SPN

Hi all, I am trying to get all the data from Content explorer for SITs matched files using https://learn.microsoft.com/en-us/powershell/module/exchange/export-contentexplorerdata?view=exchange-ps. I ...
  • VasilMichev's avatar
    Jul 30, 2025

    IIRC application permissions are not supported for the cmdlet, but you assign role groups to a service principal via PowerShell:

    Add-RoleGroupMember -Identity "ContentExplorerContentViewer" -Member xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

    Make sure to provision the SP first via New-ServicePrincipal. But again, afaik even if you grant the permissions, it is not currently supported.

Resources