Skip to content

okta_request_condition cannot be set active #2525

@jarrod-mg

Description

@jarrod-mg

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.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • OKTA support Customers can ask to reach out to Okta Developer Support Engineer/Customer Success Engineer to expedite investigation and resolution of this issue.

Description

When terraform creates a okta_request_condition, the condition is created INACTIVE. There is no way to set it to ACTIVE via terraform.

New or Affected Resource(s)

  • okta_request_condition - existing
  • okta_request_condition_active - suggested

Customer Information

Organization Name: Modica Group
Paid Customer: yes

Potential Terraform Configuration

resource "okta_request_condition" "test_cond" {
  name                 = "My Condition"
  description          = "Description of my condition"
  resource_id          = var.resource_id
  approval_sequence_id = var.approval_sequence_id
  priority             = 0

  # Allow all users to make requests
  requester_settings {
    type = "EVERYONE"
  }

  # Grant access to the app
  access_scope_settings {
    type = "RESOURCE_DEFAULT"
  }
}

resource "okta_request_condition_active" "test_cond" {
  resource_id = var.resource_id
  condition_id = okta_request_condition.test_cond.id
  status = "ACTIVE" # Or, use the existence/non-existence of an okta_request_condition_active

References

https://developer.okta.com/docs/api/iga/openapi/governance.requests.admin.v2/tag/Request-Conditions/#tag/Request-Conditions/operation/activateResourceRequestConditionV2
https://developer.okta.com/docs/api/iga/openapi/governance.requests.admin.v2/tag/Request-Conditions/#tag/Request-Conditions/operation/deactivateResourceRequestConditionV2

Metadata

Metadata

Assignees

Labels

enhancementAsking for new behavior or feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions