Skip to main content

brands

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

Overview

Namebrands
TypeResource
Idgoogle.iap.brands

Fields

NameDatatypeDescription
namestringOutput only. Identifier of the brand. NOTE: GCP project number achieves the same brand identification purpose as only one brand per project can be created.
applicationTitlestringApplication name displayed on OAuth consent screen.
orgInternalOnlybooleanOutput only. Whether the brand is only intended for usage inside the G Suite organization only.
supportEmailstringSupport email displayed on the OAuth consent screen.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbrandsId, projectsIdRetrieves the OAuth brand of the project.
listSELECTprojectsIdLists the existing brands for the project.
createINSERTprojectsIdConstructs a new OAuth brand for the project if one does not exist. The created brand is "internal only", meaning that OAuth clients created under it only accept requests from users who belong to the same Google Workspace organization as the project. The brand is created in an un-reviewed status. NOTE: The "internal only" status can be manually changed in the Google Cloud Console. Requires that a brand does not already exist for the project, and that the specified support email is owned by the caller.

SELECT examples

Lists the existing brands for the project.

SELECT
name,
applicationTitle,
orgInternalOnly,
supportEmail
FROM google.iap.brands
WHERE projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new brands resource.

/*+ create */
INSERT INTO google.iap.brands (
projectsId,
supportEmail,
applicationTitle
)
SELECT
'{{ projectsId }}',
'{{ supportEmail }}',
'{{ applicationTitle }}'
;