# Terraform API integration permissions issue

**URL:** <https://devforum.okta.com/t/terraform-api-integration-permissions-issue/28401>\
**Category:** API\
**Tags:** terraform\
**Created:** [May 22, 2024, 10:49am UTC](https://devforum.okta.com/t/terraform-api-integration-permissions-issue/28401 "2024-05-22T10:49:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aeiras](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@aeiras](https://devforum.okta.com/u/aeiras)\
**Post date:** [May 22, 2024, 10:49am UTC](https://devforum.okta.com/t/terraform-api-integration-permissions-issue/28401/1 "2024-05-22T10:49:44Z")

</div>

Hi! 👋

I’m following this guide to [enable Terraform access](https://developer.okta.com/docs/guides/terraform-enable-org-access/main/) for a Workforce Cloud Identity Developer Edition organisation and I consistently get a 403 error from the create group endpoint, with the message

> failed to create group: the API returned an error: You do not have permission to perform the requested action

Authentication works fine: I grabbed the token from the debug output of the `terraform apply` command and can e.g. get the list of existing groups.

Any help would be appreciated! 🙏

---

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://devforum.okta.com/u/krishna)\
**Post date:** [May 22, 2024, 11:03am UTC](https://devforum.okta.com/t/terraform-api-integration-permissions-issue/28401/2 "2024-05-22T11:03:53Z")

</div>

Could you attempt to assign a Super Admin role to the Service Application you utilized with Terraform? If not, you can also configure and use an [OKTA\_API\_TOKEN](https://registry.terraform.io/providers/okta/okta/latest/docs#environment-variables). Instructions can be found at [Enable Terraform access for your Okta org | Okta Developer](https://developer.okta.com/docs/guides/terraform-enable-org-access/main/#what-you-need.)"

---

<div class="post-metadata">

**Author:** ![aeiras](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@aeiras](https://devforum.okta.com/u/aeiras)\
**Post date:** [May 22, 2024, 12:27pm UTC](https://devforum.okta.com/t/terraform-api-integration-permissions-issue/28401/3 "2024-05-22T12:27:11Z")

</div>

Hi Krishna!

Thanks for getting back to me! Assigning `Organization Administrator` role fixed the issue! I’d expect `Group Administrator` to be sufficient though, as per the guide: [Enable Terraform access for your Okta org | Okta Developer](https://developer.okta.com/docs/guides/terraform-enable-org-access/main/#assign-admin-roles)

Should the guide be updated? Happy to open a PR if that’s the case 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [May 23, 2024, 12:27pm UTC](https://devforum.okta.com/t/terraform-api-integration-permissions-issue/28401/4 "2024-05-23T12:27:46Z")

</div>

Closed on May 23, 2024, 12:27pm UTC

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