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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Users permissions issue with a custom button to export a Data Entity

(0) ShareShare
ReportReport
Posted on by 45

Hi to all!

For one of our customers we have created a custom button in the PurchTable form that when clicked calls a custom Data entity to export the selected purchase order and convert it from XML to a JSON through a transformation.

Now here is the issue we are encoutering in production environment: when used with an "admin" user, everything works like a charm. When one of our client users try to use it, it does not. It seems to be a permissions problem: the given error changed while we let the user access the various tables and DMFs involved. But at this point we have added all the known DMFs and tables, and still it does not work with users that are not admins.

Do you have any ideas of what could be missing, or how can we find what's generating the problem?

Don't hesitate to ask me for further details if you need them to better understand the problem. Thank you!

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Users permissions issue with a custom button to export a Data Entity

    Hi Andrea Casagrande,

    Have you assigned the permission of all related tables to user?

    Could you share the error message you got?

  • Andrea Casagrande Profile Picture
    45 on at
    RE: Users permissions issue with a custom button to export a Data Entity

    Hi Steve!

    We have moved to a dev environment to be able to debug the error and see where it was originated (as in PROD we can't do this).

    We have found that it stops when it do the insert() on the DMFDefinitionGroup table. That table has been added to the role of the user, with no success. We added the data management role to the user too, but still it does not work.

    Here is the error we have

    7026.jpg

    7635.jpg

    I have put a red line under the button we have created.

    UPDATE: One of my collegue that is working on the issue on another machine receives just one line of error (instead of the three you see in the screenshots) that says:
    Cannot create a record in Definition Groups (DMFDefinitionGroup). Security policy permission denied

    Hope this helps.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Users permissions issue with a custom button to export a Data Entity

    Hi Andrea Casagrande,

    I found some similar thread, hope it can help you.

       

       

    If these could solve your issue, I recommend you re-post it at the forum:

    community.dynamics.com/.../dynamics-365-for-finance-and-operations-forum

  • Andrea Casagrande Profile Picture
    45 on at
    RE: Users permissions issue with a custom button to export a Data Entity

    Dear Steve,

    thank you for your feedback! I have sent your links to my colleague that's working on the issue. I will let you know if we find a solution as soon as I will have a feedback from him.

    Regards,

    Andrea

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans