Hi,
You need to give your App Registration access to the environment.
Here’s how you can do that:
Sign in to the Azure portal using an account with administrator permission.
Navigate to the Microsoft Entra ID in the left pane and select App registrations.
Select the app registration you want to give access to the environment.
In the API permissions tab, click on the Add a permission button.
Select Microsoft Dataverse from the list of APIs.
Select the appropriate permission(s) for your app registration.
Click on the Add permissions button to save the changes.
Once you have granted the necessary permissions to your app registration, you should be able to access the environment without any issues.
Regarding your test, if you are able to see the tables when setting up the List rows action, it means that your app registration has already been granted access to the environment. However, if you are still encountering a Forbidden error, it could be due to insufficient permissions.
You can try granting additional permissions to your app registration and see if that resolves the issue.