Tag Archives: Audit Log

Search Unified Audit Log Daemon Job

How to run “Search-UnifiedAuditLog” in unattended way, i.e. non-interactive. What are the minimal permissions required? The PowerShell code: Troubleshooting The error “The term ‘Search-UnifiedAuditLog’ is not recognized”: Search-UnifiedAuditLog: C:\scripts\PowerShell.auth\Search-AuditLog-w-App.ps1:16:12Line |16 | $results = Search-UnifiedAuditLog -StartDate $start -EndDate $end -Re …| ~~~~~~| The term ‘Search-UnifiedAuditLog’ is not recognized as a name of a cmdlet, function, script […]

Track SharePoint App-only Service Principals in Microsoft 365

Update (May 2023): You can use Get-PnPAzureACSPrincipal to returns the lists of all Azure ACS principals installed in your Tenant including subsites. Scenario Developers in the organization can use both – Azure Apps and SharePoint Apps to work with SharePoint sites in their “daemon” applications. It is recommended to use Azure apps so, you want […]