Nov 05 2019 07:43 PM
I have written a Powershell script to retrieve Audit Logs for Power BI, and store in SQL for analysis. The script works fine with interaction (i.e. login with username/password) but requires MFA. I cannot disable MFA for specific users, as we don't have AAD P2 or Office 365 E5, so I thought I could use an app password. It seems that this won't work either.
How do I access the Audit Log data, programmatically?
Nov 06 2019 11:26 AM
Use the Management activity API, with a service principal or a client secret: https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api...
Nov 06 2019 12:37 PM
Nov 06 2019 07:26 PM
SolutionNov 06 2019 08:49 PM
Thanks. I have actually already followed that article, and couldn't get it to work, but now I've just done it again, and it seems to work!
I also need to access the Power BI API, but I cannot seem to get that to work either. Do you have any experience around this?
Thanks
Nov 07 2019 07:12 AM