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

Cannot reset predefined OpenID Connect resource attributes back to their default #331

Closed
patrickcping opened this issue Apr 17, 2023 · 0 comments · Fixed by #329
Closed
Assignees
Labels
service/sso PingOne SSO type/bug Something isn't working
Milestone

Comments

@patrickcping
Copy link
Collaborator

patrickcping commented Apr 17, 2023

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

PingOne Terraform provider Version

0.11.1

Terraform Version

1.4.0

Affected Resource(s)

  • pingone_resource_attribute

Terraform Configuration Files

Step 1

data "pingone_resource" "openid" {
  environment_id = pingone_environment.my_environment.id
  name = "openid"
}

resource "pingone_resource_attribute" "openid_preferredemail" {
  environment_id = pingone_environment.my_environment.id
  resource_id    = data.pingone_resource.openid.id

  name = "email"
  value = "$${user.ZZPreferredEmail}"
}

Step 2 (Removal of the pingone_resource_attribute resource)

data "pingone_resource" "openid" {
  environment_id = pingone_environment.my_environment.id
  name = "openid"
}

Debug Output

Go Panic

None

Expected Behavior

Successful destroy of the pingone_resource_attribute resource, the predefined attribute is returned back to it's default in the platform.

Actual Behavior

Failure on attempt to destroy resource.

│ Error: Error when calling `DeleteResourceAttribute`: The request could not be completed. One or more validation errors were in the request.
│ 
│ PingOne Error Details:
│ ID: <<id>>
│ Code: INVALID_DATA
│ Message: The request could not be completed. One or more validation errors were in the request.
│ Details object: [{"code":"INVALID_VALUE","message":"PREDEFINED attributes cannot be deleted.","target":"name"}]

Steps to Reproduce

  1. terraform apply on Step 1
    2.terraform apply on Step 2

Important Factoids

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/sso PingOne SSO type/bug Something isn't working
Projects
None yet
1 participant