Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idp_id and idp_type are returned as null when importing resource okta_policy_rule_idp_discovery #2164

Open
rajnadimpalli opened this issue Dec 14, 2024 · 0 comments

Comments

@rajnadimpalli
Copy link
Contributor

rajnadimpalli commented Dec 14, 2024

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 other comments that do not add relevant new information or questions, 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

Terraform Version

image

Affected Resource(s)

  • okta_policy_rule_idp_discovery

Issue summary

When an IDP discovery policy rule is created via Okta admin console with a non-Okta identity provider and imported using terraform import, values of idp_type and idp_id are null

Terraform Configuration Files

resource "okta_policy_rule_idp_discovery" "dummy_rule1" {
  idp_id                    = "0oagbvzwkiuSg1D7c1d7"
  idp_type                  = "SAML2"
  name                      = "Test rule"
  network_connection        = "ANYWHERE"
  network_excludes          = null
  network_includes          = null
  policy_id                 = "00p1k7y5zwMDBASDD1d7"
  priority                  = 1
  status                    = "ACTIVE"
  user_identifier_attribute = null
  user_identifier_type      = null
  platform_include {
    os_expression = ""
    os_type       = "ANY"
    type          = "ANY"
  }
}

Steps to Reproduce

  1. Create an IDP discovery rule via Okta admin console with idp_id = "0oagbvzwkiuSg1D7c1d7" and idp_type="SAML2"
  2. Import the IDP discovery rule using terraform import (terraform import okta_policy_rule_idp_discovery.coupang_idprule1 00p1k7y5zwMDBASDD1d7/0prj39qs9infdRCcn1d7)
  3. Review state file and notice that idp_id = null and idp_type = null for the imported resource
    image

References

  • #0000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant