When you try to access any Entity and come up with this error
"Principal user is missing prvReadQuery privilege"
This is because you haven’t given read permission to the View in the Customization entity. Give the proper privileges in the CRM and this exception would be gone.