terraform-provider-okta: okta_user_profile_mapping_source Errors out
@mrvtoney commented on Jan 9, 2020, 8:57 PM UTC:
Expected Behavior
Should return the id of the profile mappings
Actual Behavior
Links to the relevant code, snippets When running the terraform script the following error is returned during “terraform plan” `Error: Error refreshing state: 1 error(s) occurred:
-
module.okta.data.okta_user_profile_mapping_source.user: 1 error(s) occurred:
-
module.okta.data.okta_user_profile_mapping_source.user: data.okta_user_profile_mapping_source.user: Error Listing User Profile Mapping Source in Okta: could not locate profile mapping source with name user`
Steps to Reproduce the Problem
- in modules/okta/okta.tf – add the following: data “okta_user_profile_mapping_source” “user” {}
- run terraform init
- run terraform plan --out test --var-file=test.tfvars
This issue was moved by noinarisak from articulate/terraform-provider-okta#371.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 16 (5 by maintainers)
We faced the same issue with a brand new Okta tenant. The error was the same - but there was no error when requesting data from
curl -H "Authorization: SSWS [TOKEN]" https://OKTATENANT/api/v1/mappingsIn our case, we received an empty array as response.To solve this issue for us, at least one app has to be created via the Okta admin console, after this was created, the profile data was present.
Plus one I am having this issue as well