Looking for help here. Getting the below error when querying formetafieldDefinitionsusing the Admin API. Tried all versions of the API includingunstable. When changing to ownerType to anything else (ie. PRODUCT, ORDER, etc), the query runs fine. Tried contacting support via chat with very little success. Can someone please help!
This error returns when your app doesn't have the necessary permission to access resources owned by whatever ownerType you are requesting through metafieldDefinitions. In this case, you would need to ensure that your app has the read/customers permission before giving it another go.