Query Details
IdentityInfo //Requires UEBA to be setup | where tostring(UserAccountControl) contains "PasswordNotRequired" | summarize arg_max(TimeGenerated,*) by AccountName, tostring(UserAccountControl)
This KQL (Kusto Query Language) query is designed to analyze identity information, specifically focusing on user accounts that have the "PasswordNotRequired" attribute set. Here's a simple breakdown of what the query does:
IdentityInfo: This is the data table being queried, which contains information about user identities. Note that this requires UEBA (User and Entity Behavior Analytics) to be set up.
where tostring(UserAccountControl) contains "PasswordNotRequired": This filters the data to only include records where the UserAccountControl attribute indicates that a password is not required for the account.
summarize arg_max(TimeGenerated,*) by AccountName, tostring(UserAccountControl): This part of the query groups the filtered results by AccountName and UserAccountControl. For each group, it selects the record with the most recent TimeGenerated timestamp. The arg_max function is used to achieve this, ensuring that you get the latest information for each account.
In summary, this query identifies user accounts that do not require a password and retrieves the most recent record for each of these accounts, based on the time the data was generated.

Jay Kerai
Released: November 27, 2025
Tables
Keywords
Operators