Skip to main content

Notifications

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!

  • 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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee 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

  • 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.

  • Community Member Profile Picture
    Community Member Microsoft Employee 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?

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans