title: Accessing a Google BigQuery dataset from a PHP script running on a Google Compute VM instance
body: <p>I am attempting to access a BigQuery dataset from a PHP script running on a Google Compute VM instance - on which I have installed Bitnami's LAMP stack.</p>
  
  <p>The dataset is owned by another party, but the party has given me a full ownership role to the dataset, using my email address. They have also given me a read role to another dataset, again using my email address.</p>
  
  <p>My PHP script is intended to read data from the dataset tables to which I have been given read permission, massage that data, and write it to tables in the dataset to which I have been given the full ownership role.</p>
  
  <p>I have spent many hours attempting to work out how to setup the correct authorisations, running everything under my email address as mentioned, but to date I am still getting errors of the "you do not have permission..." type either when trying to read data from one dataset or write it to the other.</p>
  
  <p>The BigQuery datasets are not owned by me as mentioned, but I have been given both the Project ID and names of the datasets involved, and the owner of both has used my email address to set up the access permissions discussed above.</p>
  
  <p>Has anyone a simple step-by-step guide as to how to achieve the above. Does the owner of the datasets need two do anything more than as already described? I am finding working through many pages of Google Help very confusing!</p>