1
votes

I've been trying to connect to the Office 365 Management Activity API following the steps in this MSDN article.

I don't know what am I doing wrong but all the calls return the 401 Unauthorized code. I tried to find some code samples or more detailed walkthrough of the use of Management Activity API, but with no success.

Does anyone know where to find some code I can refer to? I already tried on OfficeDev PnP, but found nothing.

Thank you in advance!

1

1 Answers

1
votes

You can find a sample PowerShell script (C#) that calls the API on GitHub: https://github.com/OfficeDev/O365-InvestigationTooling

Also, if you post an HTTP trace of your request and response, I can help you locate the issue.

Tom