-
Notifications
You must be signed in to change notification settings - Fork 13
[FEATURE] Error message when Org Manager Role is missing #164
Description
What area do you want to see improved?
terraform provider
Is your feature request related to a problem? Please describe.
On SAP BTP the user often has access to the org ID in the cockpit even if not having the role org_manager assigned.
This could lead to errors when using data sources or resources form the provider. The error message when accessing the org then states:
Error: API Error Fetching Organization
│
│ with data.cloudfoundry_spaces.all,
│ on main.tf line 1, in data "cloudfoundry_spaces" "all":
│ 1: data "cloudfoundry_spaces" "all"{
│
│ Could not get details of the Organization with ID 123455 :
│ error executing GET request for /v3/organizations/12345:
│ cfclient error (CF-ResourceNotFound|10010): Organization not found
╵
This can be quite confusing
Describe the solution you would like
It would be good if the error message would contain a hint that this might be due to missing org manager role assignments
Describe alternatives you have considered
n/a
Additional context
n/a