OCI API call returns 403 Forbidden scenarios despite valid credentials
I'm learning this framework and I'm working on a project and hit a roadblock. I'm trying to interact with the Oracle Cloud Infrastructure (OCI) API using the `oci` Python SDK, but I'm running into a `403 Forbidden` behavior when attempting to list my compartments. I've verified that my API keys are correctly set up and that they correspond to the user who has the necessary permissions. Here's the code snippet I'm using: ```python import oci config = { 'user': 'my_user_ocid', 'fingerprint': 'my_fingerprint', 'key_file': '/path/to/my_api_key.pem', 'tenancy': 'my_tenancy_ocid', 'region': 'us-ashburn-1' } identity_client = oci.identity.IdentityClient(config) try: compartments = identity_client.list_compartments(config['tenancy']).data for compartment in compartments: print(compartment.name) except oci.exceptions.ServiceError as e: print(f'behavior: {e}') ``` When I run this code, I receive the following behavior message: ``` behavior: Forbidden (HTTP 403) ``` I confirmed that the user associated with the credentials has the `ListCompartment` permission in the policy defined. I also double-checked that I'm using the correct tenancy OCID and region. I tried regenerating the API key and updating the fingerprint, but the scenario continues. Is there something I'm missing in the configuration or permissions setup? Any insights into how to resolve this would be greatly appreciated! This is part of a larger CLI tool I'm building. I'd really appreciate any guidance on this. I'm coming from a different tech stack and learning Python. Cheers for any assistance!