# Error: 403 Forbidden with Terraform

**URL:** <https://community.auth0.com/t/error-403-forbidden-with-terraform/97194>\
**Category:** Get Help\
**Tags:** anomaly, management-api\
**Created:** [December 29, 2022, 2:50pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194 "2022-12-29T14:50:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![luigi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luigi/32/33884_2.png) [@luigi](https://community.auth0.com/u/luigi)\
**Post date:** [December 29, 2022, 2:50pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/1 "2022-12-29T14:50:15Z")

</div>

Hi,  
we where successfully using Terraform to manage our Auth0 settings. Lately we switched from a pain plan to the free plan and when running terraform plan we are now getting this error:

```auto
│ Error: 403 Forbidden: The account is not allowed to perform this operation, please contact our support team
│
│ with module.auth0.auth0_custom_domain.auth,
│ on ../modules/auth0/main.tf line 52, in resource "auth0_custom_domain" "auth":
│ 52: resource "auth0_custom_domain" "auth" {

```

That makes completely sense since the free plan does not allow custom domains.

The problem is that even removing this block we are now getting this error:

`Error: 403 Forbidden: The account is not allowed to perform this operation, please contact our support team`

With no indication about the offending block. Just wondering if Terraform is allowed on the free plan or is completely forbidden. Any help?

Best,  
Luigi

---

<div class="post-metadata">

**Author:** ![christoph.lauper](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/christoph.lauper/32/49065_2.png) [@christoph.lauper](https://community.auth0.com/u/christoph.lauper)\
**Post date:** [July 20, 2023, 6:29am UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/2 "2023-07-20T06:29:01Z")

</div>

Commenting here since I’m experiencing the same issue. Also no info about the offending block. Just this:

```auto
╷
│ Error: 403 Forbidden: The account is not allowed to perform this operation, please contact our support team
│ 
│ 

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 8, 2023, 7:08am UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/3 "2023-09-08T07:08:07Z")

</div>

Hey there everyone! 👋🏼

I thought I’m gonna chime in with something that might be of your interest! We’re hosting an Ask Me Anything Session in our Forum regarding Auth0 Terraform Provider.

It’s gonna be on Thursday, September 28, 2023. Check out more info about it here!

> [@Auth0 Community Ask Me Anything with Auth0 Terraform Provider](https://community.auth0.com/t/ask-me-anything-with-auth0-terraform-provider/115670):
>
> Auth0 by Okta Community Ask Me Anything with Auth0 Terraform Provider The Auth0 Community is excited to invite you to our next interactive online Ask Me Anything (AMA) session on Thursday, September 28, 2023, featuring the Auth0 Terraform Provider Product Team. Did you know that the Auth0 Terraform Provider offers a streamlined way to manage Auth0 configurations using Infrastructure as code, allowing for easy version control, automation, and integration into existing DevOps pipelines? No matter…

---

<div class="post-metadata">

**Author:** ![fabriciopolicarpo0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fabriciopolicarpo0/32/49116_2.png) [@fabriciopolicarpo0](https://community.auth0.com/u/fabriciopolicarpo0)\
**Post date:** [September 17, 2023, 7:42pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/4 "2023-09-17T19:42:20Z")

</div>

I am experiencing the same issue, any resolution that you found?

---

<div class="post-metadata">

**Author:** ![saltuka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saltuka/32/1562_2.png) [@saltuka](https://community.auth0.com/u/saltuka)\
**Post date:** [September 17, 2023, 8:21pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/5 "2023-09-17T20:21:58Z")

</div>

Terraform should be usable for free tenants too. As a troubleshooting idea, you could export the configuration following [this link](https://registry.terraform.io/providers/auth0/auth0/latest/docs/guides/generate_terraform_config) and then compare the exported file with your configuration to find out where the failure happens.

---

<div class="post-metadata">

**Author:** ![seeda](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@seeda](https://community.auth0.com/u/seeda)\
**Post date:** [November 9, 2023, 12:27pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/6 "2023-11-09T12:27:10Z")

</div>

+1 experiencing this issue now also.

---

<div class="post-metadata">

**Author:** ![seeda](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@seeda](https://community.auth0.com/u/seeda)\
**Post date:** [November 9, 2023, 4:35pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/7 "2023-11-09T16:35:35Z")

</div>

has anyone been able to find a workaround for this?

---

<div class="post-metadata">

**Author:** ![james.calleja](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.calleja/32/49560_2.png) [@james.calleja](https://community.auth0.com/u/james.calleja)\
**Post date:** [November 16, 2023, 11:14am UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/8 "2023-11-16T11:14:04Z")

</div>

I have generated my config following that doco and I am getting the 403

---

<div class="post-metadata">

**Author:** ![luis.ordaz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luis.ordaz/32/51527_2.png) [@luis.ordaz](https://community.auth0.com/u/luis.ordaz)\
**Post date:** [November 29, 2023, 3:13am UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/9 "2023-11-29T03:13:56Z")

</div>

I’m having the same exact issue when trying to modify an `auth0_client` resource. My initial imports worked fine and I was able to get an initial state (after auto generating resources + imports). Now that I want to start modifying resources, I’m getting that error too.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 29, 2023, 9:39pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/12 "2023-11-29T21:39:39Z")

</div>

For future reference 🔮

> [@luis.ordaz](#):
>
> I’m having the same exact issue when trying to modify an `auth0_client` resource. My initial imports worked fine and I was able to get an initial state (after auto generating resources + imports). Now that I want to start modifying resources, I’m getting that error too.

This is related to the following:

> [@Auth0 Terraform provider: facing 403s when trying to modify an \`auth0\_client\` resource](https://community.auth0.com/t/auth0-terraform-provider-facing-403s-when-trying-to-modify-an-auth0-client-resource/121878/4):
>
> Hey there @luis.ordaz and @bharath! Do you see a require\_pushed\_authorization\_requests in your auth0\_client resource? If so, I believe if you omit that (it’s related to a feature flag) this error should be resolved.

Separately:

> [@luigi](#):
>
> With no indication about the offending block. Just wondering if Terraform is allowed on the free plan or is completely forbidden. Any help?

While terraform is allowed on the free tier, I believe this issue relates to the use of `auth0_custom_domain` in particular - You would get the same error for any resource not included on the free plan.

---

<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:** [December 13, 2023, 9:39pm UTC](https://community.auth0.com/t/error-403-forbidden-with-terraform/97194/13 "2023-12-13T21:39:59Z")

</div>

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