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

Documentation incorrect for "okta_user_group_memberships" and "okta_user_admin_roles" #1613

Closed
plynch-magnolia opened this issue Jun 27, 2023 · 3 comments
Labels
documentation-bug Documentation for Okta TF provider or Okta API is missing or incorrect triaged Triaged into internal Jira

Comments

@plynch-magnolia
Copy link

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

Terraform v1.5.1

Affected Resource(s)

  • okta_user_group_memberships
  • okta_user_admin_roles
  • okta_user

Terraform Configuration

resource "okta_user" "john_smith" {
  email      = "john.smith@domain.com"
  login      = "john.smith@domain.com"
  first_name = "John"
  last_name  = "Smith"

  lifecycle {
    ignore_changes = [admin_roles, group_memberships, profile_url]
  }
}

Error Output

│ Error: Unsupported attribute
│
│   on users.tf line 10, in resource "okta_user" "john_smith":
│   10:     ignore_changes = [admin_roles,group_memberships,profile_url]
│
│ This object has no argument, nested block, or exported attribute named "admin_roles".
╵
╷
│ Error: Unsupported attribute
│
│   on users.tf line 10, in resource "okta_user" "john_smith":
│   10:     ignore_changes = [admin_roles,group_memberships,profile_url]
│
│ This object has no argument, nested block, or exported attribute named "group_memberships".

Expected Behavior

No changes in plans

Can this be done in the Admin UI?

I don't know

Can this be done in the actual API call?

I don't know

Actual Behavior

Error is thrown

Steps to Reproduce

  1. terraform plan

Important Factoids

The error is only within the documentation

References

https://registry.terraform.io/providers/okta/okta/latest/docs/resources/user_admin_roles
https://registry.terraform.io/providers/okta/okta/latest/docs/resources/user_group_memberships

@duytiennguyen-okta duytiennguyen-okta added the triaged Triaged into internal Jira label Jun 27, 2023
@duytiennguyen-okta
Copy link
Contributor

OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-622580

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale label Aug 27, 2023
@duytiennguyen-okta duytiennguyen-okta added documentation-bug Documentation for Okta TF provider or Okta API is missing or incorrect and removed stale labels Oct 12, 2023
@duytiennguyen-okta
Copy link
Contributor

@plynch-magnolia okta_user no longer has admin_roles and group_memberships, which we removed during the v4 release, so you need to remove those from the lifecycle. okta_user_admin_roles and okta_user_group_memberships should be working as intended though. I am closing this issue as it is no longer needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation-bug Documentation for Okta TF provider or Okta API is missing or incorrect triaged Triaged into internal Jira
Projects
None yet
Development

No branches or pull requests

2 participants