Error: 400-BadErrorResponse,
│ Suggestion: Please retry or contact support for help with service: Identity Domains User
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_domains_user
│ API Reference: https://docs.oracle.com/iaas/api/#/en/identity-domains/v1/User/PutUser
│ Request Target: PUT https://idcs-f132551e4a7c1a031362184cebb9c9f4.us-langley-idcs-1.identity.oci.oraclegovcloud.com:443/admin/v1/Users/9411defd3d40c68966114f8abc456f25?attributeSets=all
│ Provider version: 6.13.0, released on 2024-10-12.
│ Service: Identity Domains User
│ Operation Name: PutUser
│ OPC request ID: 3859c79c2e9393f78169581af166eaa6/55ALm1eMa40000000
OCI Audit shows this
"myuser@example.com UpdateUser failed with response You provided an incorrect date format '' for attribute : urn:ietf:params:scim:schemas:oracle:idcs:extension:mfa:User:mfaEnabledOn. The correct format is: 'yyyy-MM-ddTHH:mm:ss.SSSZ'."
Per docs mfaEnabledOn is optional and may be set null.
Community Note
Terraform Version and Provider Version
Terraform v1.7.4 on darwin_arm64
Affected Resource(s)
affected_resources = oci_identity_domains_user
Terraform Configuration Files
Debug Output
After apply we see this:
OCI Audit shows this
Per docs
mfaEnabledOn
is optional and may be setnull
.Add this to above resource and error goes away:
https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/op-admin-v1-users-id-patch.html
Panic Output
Expected Behavior
Optional attributes like
mfa_enabled_on
should not cause error if excluded from the resource script.Actual Behavior
Error occurs if optional attribute
mfa_enabled_on
is excluded from the resource script.Steps to Reproduce
terraform apply
terraform apply
Important Factoids
References
mfa_enabled_on
https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_domains_user#mfa_enabled_onhttps://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/op-admin-v1-users-id-patch.html