Implement identity policy verification and use that to do simple query.