@@ -37,6 +37,10 @@ const (
3737 // for MicrosoftEntraIDOptions.FederatedTokenAuth
3838 DefaultMicrosoftEntraIDUseFederatedToken bool = false
3939
40+ // DefaultGoogleUseOrganizationID is the default value
41+ // for GoogleOptions.UseOrganizationID
42+ DefaultGoogleUseOrganizationID bool = false
43+
4044 // DefaultGoogleUseApplicationDefaultCredentials is the default values
4145 // for GoogleOptions.UseApplicationDefaultCredentials
4246 DefaultUseApplicationDefaultCredentials bool = false
@@ -269,7 +273,7 @@ type GoogleOptions struct {
269273 // TargetPrincipal is the Google Service Account used for Application Default Credentials
270274 TargetPrincipal string `yaml:"targetPrincipal,omitempty"`
271275 // UseOrganizationId indicates whether to use the organization ID as the UserName claim
272− UseOrganizationID bool `yaml:"useOrganizationID,omitempty"`
276+ UseOrganizationID *bool `yaml:"useOrganizationID,omitempty"`
273277 // admin scope needed for fetching user organization information from admin api, can be one of cloud, user or defaults to readonly
274278 AdminAPIUserScope string `yaml:"adminAPIUserScope,omitempty"`
275279}
@@ -412,6 +416,8 @@ func (a *ADFSOptions) EnsureDefaults() {
412416
413417// EnsureDefaults sets any default values for GoogleOptions fields.
414418func (g *GoogleOptions) EnsureDefaults() {
419+ g.UseOrganizationID = ptr.To(DefaultGoogleUseOrganizationID)
420+
415421 if g.UseApplicationDefaultCredentials == nil {
416422 g.UseApplicationDefaultCredentials = ptr.To(DefaultUseApplicationDefaultCredentials)
417423 }