Skip to content

[FEATURE] Error message when Org Manager Role is missing #164

@lechnerc77

Description

@lechnerc77

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions