Manage configuration settings

BigQuery administrators and project owners can manageconfiguration settings at the organization and project levels. You can setconfigurations to enforce security, control costs, and optimize queryperformance across your entire data infrastructure. By setting default values,you can ensure consistent compliance and operational efficiency, making iteasier to manage your BigQuery environment.

Specify configuration settings

The following sections describe how to specify default configurationsettings. Default settings are configured at an organization or project levelbut can be overridden at the session or job level. To enforce default behavior,you can configure default settings in combination with relatedorganizational policies.

Required roles

To get the permission that you need to specify a configuration setting, ask your administrator to grant you theBigQuery Admin (roles/bigquery.admin) IAM role. For more information about granting roles, seeManage access to projects, folders, and organizations.

This predefined role contains the bigquery.config.update permission, which is required to specify a configuration setting.

You might also be able to get this permission withcustom roles or otherpredefined roles.

For more information on IAM roles and permissions inBigQuery, seePredefined roles and permissions.

Configure organization settings

You can configure settings at the organization level by using the followingGoogleSQL statements. When you specify the configuration, you mustspecify the region where it applies. You can only use one region for eachstatement.

To configure organization settings, use theALTER ORGANIZATION SET OPTIONS DDL statement.The following example specifies several default configurations, includingthe following:

  • Time zone:America/Chicago
  • Cloud KMS key: a user-defined key
  • Query timeout: 30 minutes (1800000 milliseconds)
  • Interactive query queue timeout: 10 minutes (600000 milliseconds)
  • Batch query queue timeout: 20 minutes (1200000 milliseconds)
ALTERORGANIZATIONSETOPTIONS(`region-REGION.default_time_zone`='America/Chicago',-- Ensure all service accounts under the organization have permission to KMS_KEY`region-REGION.default_kms_key_name`=KMS_KEY,`region-REGION.default_query_job_timeout_ms`=1800000,`region-REGION.default_interactive_query_queue_timeout_ms`=600000,`region-REGION.default_batch_query_queue_timeout_ms`=1200000,`region-REGION.default_storage_billing_model`=BILLING_MODEL,`region-REGION.default_max_time_travel_hours`=72);

Replace the following:

  • REGION: theregionassociated with your project or organization—for example,us oreurope-west6.
  • KMS_KEY: a user-defined Cloud KMS key. Formore information, seeCustomer-managed Cloud KMS keys.
  • BILLING_MODEL: the storage model for new datasets—forexample,PHYSICAL for physical bytes.

The following example clears all organization-level default settings:

ALTERORGANIZATIONSETOPTIONS(`region-REGION.default_time_zone`=NULL,`region-REGION.default_kms_key_name`=NULL,`region-REGION.default_query_job_timeout_ms`=NULL,`region-REGION.default_interactive_query_queue_timeout_ms`=NULL,`region-REGION.default_batch_query_queue_timeout_ms`=NULL,`region-REGION.default_storage_billing_model`=NULL,`region-REGION.default_max_time_travel_hours`=NULL,`region-REGION.default_cloud_resource_connection_id`=NULL,`region-REGION.default_sql_dialect_option`=NULL,`region-REGION.enable_reservation_based_fairness`=NULL,`region-REGION.enable_global_queries_execution`=NULL,`region-REGION.enable_global_queries_data_access`=NULL);

Configure project settings

You can configure settings at the project level by using the followingGoogleSQL statements. When you specify the configuration, you mustspecify the region where it applies. You can only use one region for eachstatement.

To configure project settings, use theALTER PROJECT SET OPTIONS DDL statement.TheALTER PROJECT SET OPTIONS DDL statement optionally accepts thePROJECT_ID variable. If thePROJECT_ID is not specified, it defaults to thecurrent project where the query runs.The following example specifies several default configurations:

  • Time zone:America/Los_Angeles
  • Cloud KMS key: an example key
  • Query timeout: 1 hour
  • Interactive query queue timeout: 10 minutes
  • Batch query queue timeout: 20 minutes
  • Reservation-based fairness: enabled
  • Global queries: enabled for running and for accessing data
ALTERPROJECTPROJECT_IDSETOPTIONS(`region-REGION.default_time_zone`='America/Los_Angeles',-- Ensure all service accounts under the project have permission to KMS_KEY`region-REGION.default_kms_key_name`=KMS_KEY,`region-REGION.default_query_job_timeout_ms`=3600000,`region-REGION.default_interactive_query_queue_timeout_ms`=600000,`region-REGION.default_batch_query_queue_timeout_ms`=1200000,`region-REGION.default_storage_billing_model`=BILLING_MODEL,`region-REGION.default_max_time_travel_hours`=72,`region-REGION.default_cloud_resource_connection_id`=CONNECTION_ID,`region-REGION.default_sql_dialect_option`='default_google_sql',`region-REGION.enable_reservation_based_fairness`=true,`region-REGION.enable_global_queries_execution`=true,`region-REGION.enable_global_queries_data_access`=true);

Replace the following:

  • PROJECT_ID: the ID of the project.
  • REGION: theregionassociated with your project or organization—for example,us oreurope-west6.
  • KMS_KEY: a user-defined Cloud KMS key. Formore information, seeCustomer-managed Cloud KMS keys.
  • BILLING_MODEL: the storage model for new datasets—forexample,PHYSICAL for physical bytes.
  • CONNECTION_ID: the ID of the connection to use asthe default connection for tables and models.

The following example clears all project-level default settings. The defaultsettings use any organization-level default settings, if they exist. Otherwise,all default settings are set to the global default.

ALTERPROJECTPROJECT_IDSETOPTIONS(`region-REGION.default_time_zone`=NULL,`region-REGION.default_kms_key_name`=NULL,`region-REGION.default_query_job_timeout_ms`=NULL,`region-REGION.default_interactive_query_queue_timeout_ms`=NULL,`region-REGION.default_batch_query_queue_timeout_ms`=NULL,`region-REGION.default_storage_billing_model`=NULL,`region-REGION.default_max_time_travel_hours`=NULL,`region-REGION.default_cloud_resource_connection_id`=NULL,`region-REGION.default_sql_dialect_option`=NULL,`region-REGION.enable_reservation_based_fairness`=NULL,`region-REGION.enable_global_queries_execution`=NULL,`region-REGION.enable_global_queries_data_access`=NULL);

Project-level configurations override organization-level configurations.Project-level configurations can in turn be overridden bysession-level configurations, which canbe overridden byjob-level configurations.

Retrieve configuration settings

You can view the configuration settings for an organization or projectby using the followingINFORMATION_SCHEMAviews:

It may take a few minutes for new configurations to become effective andreflected within theINFORMATION_SCHEMA view.

Required roles

To get the permission that you need to retrieve configuration settings, ask your administrator to grant you theBigQuery Job User (roles/bigquery.jobUser) IAM role on the specified project. For more information about granting roles, seeManage access to projects, folders, and organizations.

This predefined role contains the bigquery.config.get permission, which is required to retrieve configuration settings.

You might also be able to get this permission withcustom roles or otherpredefined roles.

For more information on IAM roles and permissions inBigQuery, seePredefined roles and permissions.

Examples

To view the configurations under an organization in theus region, run thefollowing query:

SELECT*FROMregion-us.INFORMATION_SCHEMA.ORGANIZATION_OPTIONS;

To view the effective configurations under your default project in theusregion, run the following query:

SELECT*FROMregion-us.INFORMATION_SCHEMA.EFFECTIVE_PROJECT_OPTIONS;

To view the configurations under your default project in theus region,run the following query:

SELECT*FROMregion-us.INFORMATION_SCHEMA.PROJECT_OPTIONS;

Configuration settings

The following sections describe the configuration settings that you can specify.

Query and job execution settings

Use the following settings to control how queries are executed, timed, and queued.

Data management settings

Use the following settings to define rules for data creation, security, and lifecycle.

Cost and resource settings

Use the following settings to determine how resources are billed and connected.

  • default_storage_billing_model: The default storage billing model for newdatasets. Set the value toPHYSICAL to use physical bytes when calculating storagecharges or toLOGICAL to use logical bytes.Note that changing the default storage billing model does not affect existing datasets.For more information, seeStorage billing models.
  • default_cloud_resource_connection_id: The default connection to use whencreating tables and models. Only specify the connection's ID or name, andexclude the attached project ID and region prefixes. Usingdefault connections can cause the permissions granted to the connection'sservice account to be updated, depending on the type of table or model you'recreating. For more information, see theDefault connectionoverview.

Pricing

There is no additional charge to use the BigQuery configurationservice. For more information, seePricing.

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

Last updated 2026-02-19 UTC.