Issue #3348548: Fix Entity queries must explicitly set whether the query should be access checked or not in Password Policy
Closes #3348548