JOBS_BY_ORGANIZATION view
TheINFORMATION_SCHEMA.JOBS_BY_ORGANIZATION view contains near real-timemetadata about all jobs submitted in the organization that is associated withthe current project.
Required role
To get the permission that you need to query theINFORMATION_SCHEMA.JOBS_BY_ORGANIZATION view, ask your administrator to grant you theBigQuery Resource Viewer (roles/bigquery.resourceViewer) IAM role on your organization. For more information about granting roles, seeManage access to projects, folders, and organizations.
This predefined role contains the bigquery.jobs.listAll permission, which is required to query theINFORMATION_SCHEMA.JOBS_BY_ORGANIZATION view.
You might also be able to get this permission withcustom roles or otherpredefined roles.
The schema table is only available to users with defined Google Cloudorganizations.
For more information about BigQuery permissions, seeAccess control with IAM.
Schema
The underlying data is partitioned by thecreation_time column andclustered byproject_id anduser_email. Thequery_info column containsadditional information about your query jobs.
TheINFORMATION_SCHEMA.JOBS_BY_ORGANIZATION view has the following schema:
| Column name | Data type | Value |
|---|---|---|
bi_engine_statistics | RECORD | If the project is configured to use theBI Engine, then this field containsBiEngineStatistics. OtherwiseNULL. |
cache_hit | BOOLEAN | Whether the query results of this job were from a cache. If you have amulti-query statement job,cache_hit for your parent query isNULL. |
creation_time | TIMESTAMP | (Partitioning column) Creation time of this job. Partitioning is based on the UTC time of this timestamp. |
destination_table | RECORD | Destinationtable for results, if any. |
end_time | TIMESTAMP | The end time of this job, in milliseconds since the epoch. This field represents the time when the job enters theDONE state. |
error_result | RECORD | Details of any errors asErrorProto objects. |
folder_numbers | REPEATED INTEGER | Number IDs of folders that contain the project, starting with the folder that immediately contains the project, followed by the folder that contains the child folder, and so forth. For example, iffolder_numbers is[1, 2, 3], then folder1 immediately contains the project, folder2 contains1, and folder3 contains2. This column is only populated inJOBS_BY_FOLDER. |
job_creation_reason.code | STRING | Specifies the high level reason why a job was created. Possible values are:
|
job_id | STRING | The ID of the job if a job was created. Otherwise, the query ID of a query using optional job creation mode. For example,bquxjob_1234. |
job_stages | RECORD | Query stages of the job. Note: This column's values are empty for queries that read from tables with row-level access policies. For more information, seebest practices for row-level security in BigQuery. |
job_type | STRING | The type of the job. Can beQUERY,LOAD,EXTRACT,COPY, orNULL. ANULL value indicates a background job. |
labels | RECORD | Array of labels applied to the job as key-value pairs. |
parent_job_id | STRING | ID of the parent job, if any. |
priority | STRING | The priority of this job. Valid values includeINTERACTIVE andBATCH. |
project_id | STRING | (Clustering column) The ID of the project. |
project_number | INTEGER | The number of the project. |
referenced_tables | RECORD | Array ofSTRUCT values that contain the followingSTRING fields for each table referenced by the query:project_id,dataset_id, andtable_id. Only populated for query jobs that are not cache hits. |
reservation_id | STRING | Name of the primary reservation assigned to this job, in the formatRESERVATION_ADMIN_PROJECT:RESERVATION_LOCATION.RESERVATION_NAME.In this output:
|
edition | STRING | The edition associated with the reservation assigned to this job. For more information about editions, seeIntroduction to BigQuery editions. |
session_info | RECORD | Details about thesession in which this job ran, if any. |
start_time | TIMESTAMP | The start time of this job, in milliseconds since the epoch. This field represents the time when the job transitions from thePENDING state to eitherRUNNING orDONE. |
state | STRING | Running state of the job. Valid states includePENDING,RUNNING, andDONE. |
statement_type | STRING | The type of query statement. For example,DELETE,INSERT,SCRIPT,SELECT, orUPDATE. SeeQueryStatementType for list of valid values. |
timeline | RECORD | Query timeline of the job. Contains snapshots of query execution. |
total_bytes_billed | INTEGER | If the project is configured to useon-demand pricing, then this field contains the total bytes billed for the job. If the project is configured to useflat-rate pricing, then you are not billed for bytes and this field is informational only. Note: This column's values are empty for queries that read from tables with row-level access policies. For more information, seebest practices for row-level security in BigQuery. |
total_bytes_processed | INTEGER | Total bytes processed by the job. Note: This column's values are empty for queries that read from tables with row-level access policies. For more information, seebest practices for row-level security in BigQuery. |
total_modified_partitions | INTEGER | The total number of partitions the job modified. This field is populated forLOAD andQUERY jobs. |
total_slot_ms | INTEGER | Slot milliseconds for the job over its entire duration in theRUNNING state, including retries. |
total_services_sku_slot_ms | INTEGER | Total slot milliseconds for the job that runs on external services and is billed on the services SKU. This field is only populated for jobs that have external service costs, and is the total of the usage for costs whose billing method is"SERVICES_SKU". |
transaction_id | STRING | ID of thetransaction in which this job ran, if any. |
user_email | STRING | (Clustering column) Email address or service account of the user who ran the job. |
principal_subject | STRING | A string representation of the identity of the principal that ran the job. |
query_info.resource_warning | STRING | The warning message that appears if the resource usage during query processing is above the internal threshold of the system. A successful query job can have the resource_warning field populated. Withresource_warning, you get additional data points to optimize your queries and to set up monitoring for performance trends of an equivalent set of queries by usingquery_hashes. |
query_info.query_hashes.normalized_literals | STRING | Contains the hash value of the query.normalized_literals is a hexadecimalSTRING hash that ignores comments, parameter values, UDFs, and literals. The hash value will differ when underlying views change, or if the query implicitly references columns, such asSELECT *, and the table schema changes.This field appears for successfulGoogleSQL queries that are not cache hits. |
query_info.performance_insights | RECORD | Performance insights for the job. |
query_info.optimization_details | STRUCT | Thehistory-based optimizations for the job. Only theJOBS_BY_PROJECT view has this column. |
transferred_bytes | INTEGER | Total bytes transferred for cross-cloud queries, such as BigQuery Omni cross-cloud transfer jobs. |
materialized_view_statistics | RECORD | Statistics of materialized views considered in a query job. (Preview) |
metadata_cache_statistics | RECORD | Statistics for metadata column index usage for tables referenced in a query job. |
search_statistics | RECORD | Statistics for a search query. |
query_dialect | STRING | This field will be available sometime in May, 2025. The query dialect used for the job. Valid values include:
This field is only populated for query jobs. The default selection of query dialect can be controlled by theconfiguration settings. |
continuous | BOOLEAN | Whether the job is acontinuous query. |
continuous_query_info.output_watermark | TIMESTAMP | Represents the point up to which the continuous query has successfully processed data. |
vector_search_statistics | RECORD | Statistics for a vector search query. |
For stability, we recommend that you explicitly list columns in your information schema queries instead ofusing a wildcard (SELECT *). Explicitly listing columns prevents queries frombreaking if the underlying schema changes.
Data retention
This view displays running jobs along with job history for the past 180 days.If a project migrates to an organization (either from having no organization orfrom a different one), job information predating the migration date isn'taccessible through theINFORMATION_SCHEMA.JOBS_BY_ORGANIZATION view, as theview only retains data starting from the migration date.
Scope and syntax
Queries against this view must include aregion qualifier.The following table explains the region scope for this view:
| View name | Resource scope | Region scope |
|---|---|---|
[PROJECT_ID.]`region-REGION`.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION | Organization that contains the specified project | REGION |
- Optional:
PROJECT_ID: the ID of your Google Cloud project. If not specified, the default project is used. REGION: anydataset region name. For example,`region-us`.Note: You must usea region qualifier to query
INFORMATION_SCHEMAviews. The location of the query execution must match the region of theINFORMATION_SCHEMAview.
INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION to find a summary costof query jobs, exclude theSCRIPT statement type,otherwise some values might be counted twice. TheSCRIPT row includessummary values for all child jobs that were executed as part of this job.Examples
To run the query against a project other than your default project, add theproject ID in the following format:
`PROJECT_ID`.`region-REGION_NAME`.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION
PROJECT_ID: the ID of the projectREGION_NAME: the region for your project
For example,`myproject`.`region-us`.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION.
Find top five jobs that scanned the most bytes today
The following example demonstrates how to find the five jobs that scanned themost bytes in an organization for the current day. You can filter further onstatement_type to query for additional information such as loads, exports,and queries.
SELECTjob_id,user_email,total_bytes_billedFROM`region-REGION_NAME`.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATIONWHEREEXTRACT(DATEFROMcreation_time)=current_date()ORDERBYtotal_bytes_billedDESCLIMIT5;
INFORMATION_SCHEMA view names are case-sensitive.The result is similar to the following:
+--------------+--------------+---------------------------+| job_id | user_email | total_bytes_billed |+--------------+--------------+---------------------------+| bquxjob_1 | abc@xyz.com | 999999 || bquxjob_2 | def@xyz.com | 888888 || bquxjob_3 | ghi@xyz.com | 777777 |+--------------+--------------+---------------------------+
Aggregate Connected Sheets usage by user at the organization level
The following query provides a summary of the top Connected Sheetsusers in your organization over the last 30 days, ranked by their totalbilled data. The query aggregates the total number of queries, totalbytes billed, and total slot milliseconds for each user. This information isuseful for understanding adoption and for identifying top consumers ofresources.
SELECTuser_email,COUNT(*)AStotal_queries,SUM(total_bytes_billed)AStotal_bytes_billed,SUM(total_slot_ms)AStotal_slot_msFROM`region-REGION_NAME.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION`WHERE-- Filter for jobs created in the last 30 dayscreation_time>=TIMESTAMP_SUB(CURRENT_TIMESTAMP(),INTERVAL30DAY)-- Filter for jobs originating from Connected SheetsANDjob_idLIKE'sheets_dataconnector%'-- Filter for completed jobsANDstate='DONE'AND(statement_typeISNULLORstatement_type <>'SCRIPT')GROUPBY1ORDERBYtotal_bytes_billedDESC;ReplaceREGION_NAME with the region for your project.For example,region-us.
INFORMATION_SCHEMA views. Thelocation of the query execution must match the region of theINFORMATION_SCHEMA view.The result looks similar to the following:
+---------------------+---------------+--------------------+-----------------+| user_email | total_queries | total_bytes_billed | total_slot_ms |+---------------------+---------------+--------------------+-----------------+| alice@example.com | 152 | 12000000000 | 3500000 || bob@example.com | 45 | 8500000000 | 2100000 || charles@example.com | 210 | 1100000000 | 1800000 |+---------------------+---------------+--------------------+-----------------+
Find job logs of Connected Sheets queries at the organization-level
The following query provides a detailed log of every individual job run byConnected Sheets. This information is useful for auditing andidentifying specific high-cost queries.
SELECTjob_id,creation_time,user_email,project_id,total_bytes_billed,total_slot_msFROM`region-REGION_NAME.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION`WHEREcreation_time>=TIMESTAMP_SUB(CURRENT_TIMESTAMP(),INTERVAL30DAY)ANDjob_idLIKE'sheets_dataconnector%'ANDstate='DONE'AND(statement_typeISNULLORstatement_type <>'SCRIPT')ORDERBYcreation_timeDESC;ReplaceREGION_NAME with the region for your project.For example,region-us.
INFORMATION_SCHEMA views. Thelocation of the query execution must match the region of theINFORMATION_SCHEMA view.The result looks similar to the following:
+---------------------------------+---------------------------------+-----------------+------------+--------------------+---------------+| job_id | creation_time | user_email | project_id | total_bytes_billed | total_slot_ms |+---------------------------------+---------------------------------+-----------------+------------+--------------------+---------------+| sheets_dataconnector_bquxjob_1 | 2025-11-06 00:26:53.077000 UTC | abc@example.com | my_project | 12000000000 | 3500000 || sheets_dataconnector_bquxjob_2 | 2025-11-06 00:24:04.294000 UTC | xyz@example.com | my_project | 8500000000 | 2100000 || sheets_dataconnector_bquxjob_3 | 2025-11-03 23:17:25.975000 UTC | bob@example.com | my_project | 1100000000 | 1800000 |+---------------------------------+---------------------------------+-----------------+------------+--------------------+---------------+
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.