Skip to content

okta_push_group throw 404 error instead of being recreated #2807

Description

@Moesjes

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
    Before submitting a bug report, we ask that you first search existing issues and pull requests to see if someone else may have experienced the same issue or may have already submitted a fix for it. This helps to keep all relevant information in one place, including any potential workarounds.

A Note on Terraform Core Issues

We also ask that you consider whether your issue may be related to Terraform Core. If you are running into one of the following scenarios, we recommend opening an issue in the Terraform Core repository instead:

Terraform Version & Okta Provider Version(s)

Terraform v1.11.0
on Terraform cloud

  • provider registry.terraform.io/providers/okta/okta/ v6.10

Affected Resource(s)

okta_push_group

Can this be done in the Admin UI?

Yes

Can this be done in the actual API call?

Yes

Customer Information

Paid Customer: yes

Terraform Configuration

resource "okta_push_group" "main" {
  for_each                       = local.push_groups
  app_id                         = okta_app_saml.application.id
  source_group_id                = each.value
  status                         = "ACTIVE"
  delete_target_group_on_destroy = true
}

Debug Output

{"@Level":"error","@message":"Error: Error reading Okta push group mapping ","@module":"terraform.ui","@timestamp":"2026-05-05T07:39:25.026194Z","diagnostic":{"severity":"error","summary":"Error reading Okta push group mapping ","detail":"404 Not Found","address":"okta_push_group.prefix_a["groupname"]","range":{"filename":"app_island_dev.tf","start":{"line":113,"column":47,"byte":3574},"end":{"line":113,"column":48,"byte":3575}},"snippet":{"context":"resource "okta_push_group" "prefix_a"","code":"resource "okta_push_group" "prefix_a" {","start_line":113,"highlight_start_offset":46,"highlight_end_offset":47,"values":[]}},"type":"diagnostic"}

Expected Behavior

After the group push mapping was deleted from the UI Terraform should detect this and recreate it.

Actual Behavior

It threw a 404 and errored out on the plan phase.

Steps to reproduce

Create a push group resource through Terraform, delete this through the UI, then re-run a plan/apply

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions