UEBA Find Onpremise Users With Password Not Required
Query
IdentityInfo //Requires UEBA to be setup
| where tostring(UserAccountControl) contains "PasswordNotRequired"
| summarize arg_max(TimeGenerated,*) by AccountName, tostring(UserAccountControl)Explanation
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
UserAccountControlattribute 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
AccountNameandUserAccountControl. For each group, it selects the record with the most recentTimeGeneratedtimestamp. Thearg_maxfunction 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.
Details

Jay Kerai
Released: November 27, 2025
Tables
Keywords
Operators