List external applications with highly privileged permissions
Description
The query below lists the external applications with highly privileged permissions. It is highly recommended to periodicly review the high priviliged external applications.
Query · kql
OAuthAppInfo | where AppOrigin == "External" | where PrivilegeLevel == "High" | summarize arg_max(Timestamp, *) by OAuthAppId | extend PublisherName = tostring(VerifiedPublisher.displayName), DateAdded = todatetime(VerifiedPublisher.addedDateTime) | project AppName, OAuthAppId, ServicePrincipalId, AddedOnTime, PublisherName, AppOwnerTenantId