A code snippet to add a user as read only on a BigQuery table.
To add different permissions, other BigQuery roles can be seen in the Google documentation.

GRANT `roles/bigquery.dataViewer`
ON TABLE my_project.a_dataset.some_table
TO 'user-email@gmail.com';