Skip to content

Instantly share code, notes, and snippets.

@tgoodsell-tempus
Created March 17, 2020 04:03
Show Gist options
  • Save tgoodsell-tempus/07211d3c4e79649c3d29a7c609544adc to your computer and use it in GitHub Desktop.
Save tgoodsell-tempus/07211d3c4e79649c3d29a7c609544adc to your computer and use it in GitHub Desktop.
Output Debuggins
Plan Output:
``` # module.<redacted>.okta_group_rule.parent_assignments[0] will be destroyed
- resource "okta_group_rule" "parent_assignments" {
- expression_type = "urn:okta:expression:1.0" -> null
- expression_value = "isMemberOfGroup(\"00g2zzwlxcyz77tF0297\")" -> null
- group_assignments = [
- "00g2zym3chkeQFWKi297",
] -> null
- id = "0pr2zzwctbfGBaxxE297" -> null
- name = "00g2zzwlxcyz77tF0297:<redacted>" -> null
- status = "INVALID" -> null
}```
Call Error:
`module.<redacted>.okta_group_rule.parent_assignments[0]: Destroying... [id=0pr2zzwctbfGBaxxE297]`
`Error: The API returned an error: Api validation failed: updateRuleStatus. Causes: errorSummary: Cannot activate or deactivate a Group Rule with the status INVALID.`
Group Rule API Output:
```
{'actions': {'assignUserToGroups': {'groupIds': ['00g2zym3chkeQFWKi297']}},
'allGroupsValid': False,
'conditions': {'expression': {'type': 'urn:okta:expression:1.0',
'value': 'isMemberOfGroup("00g2zzwlxcyz77tF0297")'}},
'created': '2020-02-06T21:48:08.000Z',
'id': '0pr2zzwctbfGBaxxE297',
'lastUpdated': '2020-03-13T15:38:07.000Z',
'name': '00g2zzwlxcyz77tF0297:<redacted>',
'status': 'INVALID',
'type': 'group_rule'}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment