API Stability Short-Term

The queryQuotaUserSettings() GraphQL query returns the query quota settings for a given user.

For more information on query quotas, see the Query Quotas documentation page.

Syntax

Below is the syntax for the queryQuotaUserSettings() query field:

graphql
queryQuotaUserSettings(
     username: string
   ): [QueryQuotaUserSettings!]!

There's only one input, the username. The return datatype is described in the Returned Datatypes section. Here's an example of how this query field might be used:

Show:
graphql
query {
  queryQuotaUserSettings(username: "bob@company.com") 
  { settings { interval, measurementKind, 
               value, valueKind, source } }
}

Returned Datatypes

queryQuotaUserSettings() has a couple of parameters and sub-parameters. Below is a list of them, along with links to the sub-parameters:

Table: QueryQuotaUserSettings

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 2, 2024
settings[QueryQuotaIntervalSetting]yes Short-TermList of the settings that apply. See QueryQuotaIntervalSetting.
usernamestringyes Short-TermUsername of the user for which these Query Quota Settings apply.