A Terraform provider to manage Okta resources, enabling infrastructure-as-code provisioning and management of users, groups, applications, and other Okta objects.
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
Users are not removed from the group set by the rule when using remove_assigned_users = true. Instead their managed status changes from "By rule" to "Manually"
Community Note
Terraform Version
1.9.5
Affected Resource(s)
okta_group_rule
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
Once the rule is deleted all users assigned by the rule should be unassigned from the group
Can this be done in the Admin UI?
I don't know
Can this be done in the actual API call?
Yes
https://developer.okta.com/docs/api/openapi/okta-management/management/tag/GroupRule/#tag/GroupRule/operation/deleteGroupRule
Actual Behavior
Users are not removed from the group set by the rule when using
remove_assigned_users = true
. Instead their managed status changes from "By rule" to "Manually"Steps to Reproduce
terraform apply
terraform apply
Important Factoids
N/A
References
N/A