Closed lix5686 closed 11 months ago
Thanks @lix5686 . I suspect Okta API does not allow a group to be assigned to an inactive app, will have to investigate. If API is not in parity with Admin UI we'll have to file a bug/enhancement on the responsible feature team at Okta.
Okta internal reference: https://oktainc.atlassian.net/browse/OKTA-594730
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
@monde could you keep it open to track the issue? thank you
Not stale
Some findings from #1465 - commend https://github.com/okta/terraform-provider-okta/issues/1465#issuecomment-1799392065
@duytiennguyen-okta and I looked at this some more. We think there is a flaw in the way all the apps do update. If you are using TF to disable an app then any other updates in the same apply are invalid for that update. Okta treats deactivated apps as a soft delete, once deactivated, the operator can no longer make associations to that app or update it's attributes. The only action or change that can be taken on an deactivated app is activate it or delete it. I'm going to update all the apps behavior to be more precise about this. And also update our docs.
@lix5686 @adantop I think this issue is expected behavior, assignments can not be made with a deactivated app. I'm going to close this issue.
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Panic Output
Expected Behavior
I'd expect that the group assignment successfully finds the app by id since the app exists (see the screenshot below) and assign to the group to the app
Can this be done in the Admin UI?
No, it seems that I cannot assign groups to an inactive app either.
Can this be done in the actual API call?
I don't know.
Actual Behavior
Fails to find the app and unable to assign the group to the app. I posted an example for bookmark app for simplicity but this also happens with oauth or saml apps as well.
Steps to Reproduce
terraform apply
Important Factoids
References
0000