Skip to main content

users_access_token

Creates, updates, deletes, gets or lists a users_access_token resource.

Overview​

Nameusers_access_token
TypeResource
Idgoogle.developerconnect.users_access_token

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
exchangeErrorobjectThe error resulted from exchanging OAuth tokens from the service provider. (id: ExchangeError)
expirationTimestring (google-datetime)Expiration timestamp. Can be empty if unknown or non-expiring.
scopesarrayThe scopes of the access token.
tokenstringThe token content.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_access_tokenselectprojectsId, locationsId, accountConnectorsIdFetches OAuth access token based on end user credentials.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
accountConnectorsIdstring
locationsIdstring
projectsIdstring

SELECT examples​

Fetches OAuth access token based on end user credentials.

SELECT
exchangeError,
expirationTime,
scopes,
token
FROM google.developerconnect.users_access_token
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND accountConnectorsId = '{{ accountConnectorsId }}' -- required
;