web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

OData action security issue

(0) ShareShare
ReportReport
Posted on by 75

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.

pastedimage1656063664934v1.png

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

pastedimage1656335152667v1.png

I have the same question (0)
  • NikolajSorensen Profile Picture
    1,792 on at

    And the users are actually testing it through Odata and not Data management?

    Please double check the relations between the entitiy, privilege, duty and role.

    Perhaps you can provide screenshots showing this relationship?

  • Askor Profile Picture
    75 on at

    Yes users are are testing from Power automate. Relations are all correct

  • Suggested answer
    NikolajSorensen Profile Picture
    1,792 on at

    If you are certain that the relations are correct, then I would suggest reviewing the data entity. Perhaps you need to explicitly grant access to some of the data sources used in the entity.

  • Suggested answer
    Askor Profile Picture
    75 on at

    I found the solution to this. 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

  • NikolajSorensen Profile Picture
    1,792 on at

    Great that the solution was found.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 301 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 118 Super User 2025 Season 2

#3
Siv Sagar Profile Picture

Siv Sagar 105 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans