# Disable google-oauth2 in Terraform

**URL:** <https://community.auth0.com/t/disable-google-oauth2-in-terraform/110084>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [June 27, 2023, 3:50pm UTC](https://community.auth0.com/t/disable-google-oauth2-in-terraform/110084 "2023-06-27T15:50:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kim.kinnaird](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kim.kinnaird/32/60304_2.png) [@kim.kinnaird](https://community.auth0.com/u/kim.kinnaird)\
**Post date:** [June 27, 2023, 3:50pm UTC](https://community.auth0.com/t/disable-google-oauth2-in-terraform/110084/1 "2023-06-27T15:50:01Z")

</div>

I’m managing all tenant resources in Terraform but our account has google-oauth2 enabled for all applications. I’ve imported the resource into the terraform resource below. Every time I run terraform apply, it changes disable\_signup to true but there’s something within Auth0 that keeps re-enabling it. Is there anyway to disable this in Terraform or do I need to do it in the UI?

resource “auth0\_connection” “google” {  
name = “google-oauth2”  
strategy = “google-oauth2”

options {  
disable\_signup = true  
}  
}

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 14, 2025, 3:15pm UTC](https://community.auth0.com/t/disable-google-oauth2-in-terraform/110084/4 "2025-03-14T15:15:04Z")

</div>

Hi @kim.kinnaird

Welcome to the Auth0 Community!

I am sorry about the late reply to your post!

You should be able to do this via the `auth0_connection_clients` by leaving the `enabled_clients` array empty as seen in this [documentation](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/connection_clients):

```auto
resource "auth0_connection_clients" "my_conn_clients_assoc" {
  connection_id = auth0_connection.my_conn.id
  enabled_clients = []
}

```

If you have any other questions, feel free to leave a reply!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 28, 2025, 3:15pm UTC](https://community.auth0.com/t/disable-google-oauth2-in-terraform/110084/5 "2025-03-28T15:15:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
