[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/bigquery/docs/code-asset-folders [Back]  [Original]

Organize code assets with folders  |  BigQuery  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

Organize code assets with folders

The following document describes how BigQuery folders work. You can use folders to organize code assets in a hierarchical structure, similar to that used by operating systems. For example, you could create a folder to organize code assets for sales analysis, with subfolders for each fiscal year. You can also use folders to manage access to code assets. Folders offer Identity and Access Management (IAM) policy inheritance, which you can use to control access to code assets more efficiently. Policy inheritance lets subfolders and files inherit the permissions of their parent folder.

BigQuery folders are powered by Dataform.

For more information about working with folders in BigQuery, see Create and manage folders.

Organize code assets with folders

You can access and organize your code assets by using folders in the Files pane of BigQuery Studio:

The location of the **Files** pane within BigQuery Studio. [The location of the **Files** pane within BigQuery Studio.]

A folder is the basic container for organizing code assets, similar to a standard file system folder. You can create and organize subfolders within a parent folder, and you can move code assets into and out of folders. When you grant permissions on a folder, the permissions propagate to all of the folders and files contained by that folder.

You can only use folders to organize single file code assets, such as notebooks, saved queries, data canvases, and data preparation files.

Folder types

BigQuery supports the following types of folders:

Folder code regions

You can have folders and code assets in different code regions. For example, you could have folderA and the code assets that it contains in the us-west1 region, and folderB and the code assets that it contains in the us-central1 region. The region that you are viewing is displayed in the Files pane:

The current code region is displayed next to the project name in the **Files** pane. [The current code region is displayed next to the project name in the **Files** pane.]

IAM policy inheritance

IAM access for file and folder resources uses a hierarchical structure. This hierarchy ensures that access policies are inherited from parent folders to their contents.

When an IAM policy is set on a folder, the permissions granted by that policy also apply to all the files and nested subfolders in the folder's subtree. This has the following consequences:

As a result, you don't need project-level permissions to perform actions on resources located deep in a folder structure. You only need the proper permission on any folder in the path to that resource. For example, if you want to create a file in a subfolder, you need the necessary permissions on either the specific subfolder or any of its parent folders, which includes the top-level folder.

The following are best practices for applying IAM policies to files and folders:

Note: Roles granted to individual files or folders are preserved during a move, but inherited roles update to match the new location. Additionally, roles configured on the source and destination folders remain unaffected by a move.

IAM roles granted on resource creation

When you create a folder, the following roles are granted automatically:

You can use the Config API to grant a specific role upon resource creation.

You don't automatically receive any roles when you create new files or folders within a team folder's subtree.

Busy resources

A user folder or team folder is "busy" if it's actively involved in a move operation, either as the object being moved or the destination of the move. The system restricts busy resources from the following actions to ensure data integrity during the move:

Limitations

BigQuery folders have the following limitations:

Locations

BigQuery folders are supported in all Dataform locations.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page