Forum Discussion

FlaviuB's avatar
FlaviuB
Copper Contributor
Aug 11, 2023

Get-ComplianceSearchAction fails for SP

Hi,

i'm running an unattended script to get the status of a content search export, using a Service Principal. Unfortunately, when i run get-compliacesearchaction -identity <some.identity_export> i receive an error. If i run it without parameter it works and returns all my exports. The SP is added to all required roles.

 

I raised a support request to MS, and received a response that "...internal engineering team and they confirm that this has to do with a design limitation when it comes to using SP with Get-complianceaction cmdlet."

 

Anyone encountered the issue and managed to find a workaround? As far as i know, using tokens does no longer work.


Thank you for your help!

1 Reply

  • If engineering has confirmed this as limitation, not much you can do. They are slowly adding support for eDiscovery operations under the Graph API, so perhaps in time we will see support for SP/application permissions scenarios too.

Resources