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

app_group_assignments.min_items prevents explicit zero group assignments #2068

Open
exitcode0 opened this issue Aug 20, 2024 · 2 comments · May be fixed by #2069
Open

app_group_assignments.min_items prevents explicit zero group assignments #2068

exitcode0 opened this issue Aug 20, 2024 · 2 comments · May be fixed by #2069
Labels
bug triaged Triaged into internal Jira

Comments

@exitcode0
Copy link
Contributor

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

N/A

Affected Resource(s)

  • okta_app_group_assignments

Terraform Configuration Files

resource "okta_app_group_assignments" "example" {
  app_id = okta_app_bookmark.example.id

  # This application should never have a group assigned to it

}

Debug/panic Output

Terraform validate fails stating that at least one group block is required

Expected Behavior

I should be able to explicitly manage that an application should have no groups assigned to it

Can this be done in the Admin UI?

N/A

Can this be done in the actual API call?

N/A

Actual Behavior

Terraform validate fails on the okta_app_group_assignments resource and states that at least one group block is required due to the min_items in the resource schema

Steps to Reproduce

  1. terraform apply

Important Factoids

This might be a dupe as I feel like i've raised this in the past
but if there is an existing issue for this, I couldn't find it ¯\(ツ)

References

  • #0000
@duytiennguyen-okta duytiennguyen-okta added triaged Triaged into internal Jira bug labels Aug 20, 2024
@duytiennguyen-okta
Copy link
Contributor

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

@exitcode0
Copy link
Contributor Author

@duytiennguyen-okta I've raise a PR for this #2069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triaged Triaged into internal Jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants