I have created a data entity to be used solely for exposing OData actions. The method is meant to do some action on behalf of field technicians using powerapps. So the user would be assigned a specific role in FnO (not sys admin). I have added the two created privileges to a duty and likewise the duty to the specific role for technicians. When I test running this entity action from power automate, I got the following error
"An error has occurred. User is not authorized to read view AMCaseTableEntity"
If I give sys admin to the user, the entity works perfectly fine. But other than sys admin it just wont work. I have even tried giving the user as many roles as possible except for sys admin and still nothing. Am I missing something here? The following is the properties that Ive set for the privileges. I have also tested Integration mode - All and still not working.

Anyone can help?
Edit:
I found the solution!
We need to explicitly grant permission to the odata action method in the data entity. This is done by adding the method node under the data entity permission in the security privilege and specify the method name
