Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Querying on authorized view #1328

@hamza-busuri

Description

@hamza-busuri

Hi there,

I am trying to create an authorized view via the nodejs-bigquery library. I have followed the tutorial on https://github.com/googleapis/nodejs-bigquery/blob/main/samples/authViewTutorial.js

I have a few questions.

  • Can we create authorized views within the source dataset id or do we need to create a shared one?
  • How can I check whether the user trying to query is authorized within the code? Do I need to check the metadata.access object? How does that work?
  • Is it possible to have an authorized view just via role and not email? i.e if I want all users with a role to be able to query
    Thanks!

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/nodejs-bigquery API.priority: p3Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions