Vertex AI shifts to granular OAuth scopes
Vertex AI is promoting the specific `aiplatform` OAuth scope as the primary authorization method across most resources, while finalizing the enforcement of the `name` parameter as strictly required.
A major update to the authorization model introduces https://www.googleapis.com/auth/aiplatform as the primary scope for methods across customJobs, dataLabelingJobs, datasets, endpoints, and featureGroups. While the broad cloud-platform scope remains supported, it has been moved to a secondary position in the discovery document, signaling a shift toward the Principle of Least Privilege. Additionally, this update confirms the breaking change where the name parameter is now strictly required across these resource methods, requiring developers to ensure all API calls include the full resource name.
Vertex AI: Breaking Parameter Changes & Auth Scope Shift
Vertex AI v1beta1 enforces mandatory name and parent parameters and transitions many resource fields to read-only status. Additionally, the API is shifting its primary OAuth scope to the service-specific aiplatform scope.
This update introduces several breaking changes: the 'name' and 'parent' parameters are now strictly required across multiple methods, requiring updates to any client calls that previously omitted them. Furthermore, a wide range of properties in the A2ATaskRecord schema—including status, history, artifacts, createTime, and expireTime—have been marked as read-only/immutable, as has the useGkeTd field in SandboxEnvironmentSnapshot. Client-side attempts to modify these fields will now fail.
On the authentication front, Vertex AI is transitioning its primary OAuth scope. Methods for Agents, Apps, Datasets, and Endpoints now prioritize the 'https://www.googleapis.com/auth/aiplatform' scope over the generic 'cloud-platform' scope. While the generic scope is often still listed as a secondary option, developers should verify their service account permissions and client library configurations to ensure they are using the most specific scope recommended for Vertex AI operations.