Search code examples
axaptamicrosoft-dynamicsdynamics-ax-2012-r2dynamics-ax-2012-r3dynamics-ax-xpo

Menu item not available in UI if user does not have sysadmin role


I have created a form and placed it on UI by using menuitem.

I imported the code in test environment. End user doesn't have sysadmin role. So he is not able to see the Form button on UI. When we give sysadmin it showing him the form UI button.

How can I achieve such that user can be able to see form UI button without giving him sysadmin role?


Solution

  • You have to set security for it. In AX 2012, users have access granted through the roles assigned to them, directly or by AD groups.

    A role is a set of duties, a duty is a set of privileges, a privilege is a set of menu items. So your menu item has to be added to this. SysAdmin has no security tested. For other users, they can only access to elements granted to them. If an element is not handled by the security, it will not be visible.

    A good starting point: https://technet.microsoft.com/en-us/library/gg731787.aspx