Open katkasian opened 3 years ago
Also experiencing this
+1
+1
This issue still persists in 2024. Are there any plans to fix this or provide a workaround? Right now I can't manage any properties of the account owner user, because the illegal role="owner"
attribute is always included in the PUT
request.
I had this issue with the title of the owner. now I cannot even update manually with a custom value and it block terraform. this "security" feature is the worst I ever encounter in my whole career.
Terraform Version
Terraform v1.0.5 + provider v1.10.1
Affected Resource(s)
Terraform Configuration Files
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://gist.github.com/katkasian/1ade5d7da6971cf4ccea8e89761b87fc
Expected Behavior
As described in a closed issue related to 403 for attempts to update account owner user resource and a community thread it references, when using a user-level API key created under account owner's profile, one should be able to manage the profile with Terraform.
Actual Behavior
Despite using the user-level API key with account owner permissions, getting a 403. This appears to be related to the fact that the role attribute (owner) is always being passed in the PUT payload to PagerDuty by the provider. When making a PUT request to the account owner profile directly using PagerDuty API, I only get 403 response when including the
role
property.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
pagerduty_user
resource with account owner details.terraform import pagerduty_user.main PXXXXX
job_title
terraform apply
and observe a 403 error. If using debug level of logging, also observe how "role":"owner" appears in the PUT request payload.