Function: List EntraID SignIn activities account
Description
This function can be used to list both the SigninLogs and AADNonInteractiveUserSignInLogs based on the account that has been given as intput (UserAccount).
Query · kql
let UserAccount = "test@test.com";
let aadFunc = (tableName: string, email: string) {
table(tableName)
| where ResultType == 0
| where UserPrincipalName == email
};
let aadSignin = aadFunc("SigninLogs", UserAccount);
let aadNonInt = aadFunc("AADNonInteractiveUserSignInLogs", UserAccount);
union isfuzzy=true aadSignin, aadNonInt
// In case of all details remove line below
| project TimeGenerated, Category, Location, AppDisplayName, ClientAppUsed, RiskState