Skip to main content

Notifications

Microsoft Dynamics AX (Archived)
Suggested answer

Allow deleting but not creating !

Posted on by 350

Hi All

Can I allow a special user to delete records (from customer payment journal for example) without allowing him to create one (I want to use Standard Security Privilges/Rules if possible without any coding !)

Thanks.

*This post is locked for comments

  • JauB Profile Picture
    JauB 350 on at
    RE: Allow deleting but not creating !

    Hi Kaled

    Even you create a new privileges/rules with Delete level, the user can create a journal, because delete is a higher level than create one !

    Refere to Danyal post :

    Delete: An end-user can view, edit, create new and deletedata

  • Khaled Alloud Profile Picture
    Khaled Alloud 3,658 on at
    RE: Allow deleting but not creating !

    But if you remove the original role of the user, and add to it a new role with the needed privileges only, he won't be able to create.

  • JauB Profile Picture
    JauB 350 on at
    RE: Allow deleting but not creating !

    With Delete Level, the user can create also !

    I will do it by code !

  • Suggested answer
    Khaled Alloud Profile Picture
    Khaled Alloud 3,658 on at
    RE: Allow deleting but not creating !

    Try creating a new privilege with Delete access level and it to the role

  • JauB Profile Picture
    JauB 350 on at
    RE: Allow deleting but not creating !

    It will bd hard coded, i don't like to do it in that way, but i will try it!

  • Khaled Alloud Profile Picture
    Khaled Alloud 3,658 on at
    RE: Allow deleting but not creating !

    Hello,

    Have you checked create a new Privilege from the AOT and adding it to the role? in the privilege you add an entry point with Access level Delete.

    Thank you,

  • Ashwin Jugurnauth Profile Picture
    Ashwin Jugurnauth 411 on at
    RE: Allow deleting but not creating !

    You can't do that by security rules because the delete permission is higher than the create permission. The easiest way to achieve it is to modify the form's dataset property or the form's property which shows the new / delete buttons. 2nd option not to be used with standard forms however :)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Allow deleting but not creating !

    Security standards won't allow such cases. The privileges don't enforce a single action but rather a set of actions. They are as:

    • No access: Does not provide any access to data
    • Read: An end-user can view data
    • Update: An end-user can view and edit data
    • Create: An end-user can view, edit and create new data
    • Correct: An end-user can view, edit, create new and correct date-effective records without creating new records
    • Delete: An end-user can view, edit, create new and deletedata
  • JauB Profile Picture
    JauB 350 on at
    RE: Allow deleting but not creating !

    Yes I can do it by coding, but i tought that may be there is a solution to do that using security rules...

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans