QueryOwnershipType is an enumerated list used for the basis of ownership for running queries.

This enumerated datatype is used by the createReadonlyToken(), updateDashboardToken(), installPackageFromZip(), updatePackageFromZip() mutation fields, It's also used by several other, less specialized datatypes (e.g., CreateAlert and CreateScheduledSearch), which are used by several main datatypes and thereby many mutation and other query fields.

Table: QueryOwnershipType

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For return datatypes, this indicates that you must specify which fields you want returned in the results.
Table last updated: Oct 3, 2025
Organization   Long-TermQueries are run on behalf of the organization.
User   Long-TermQueries are run on behalf of the user.