@alessandrogario I found that command you pasted but I couldn't determine anyway to to get something equivalent with osquery, I think you are right that it would require adding a column. I think the appropriate table would be
account_policy_data
which already parses other
dscl
output.