When it comes to testing of appropriate security in Microsoft Dynamics AX, you want to ensure persons will get enough permissions for doing their daily jobs in AX. You don’t want to give too much functionality, namely because of risks. When the user has too less functionality, the normal daily job cannot be executed correctly.

When starting AX2012 the credientials of the windows user is retrieved to log on. A user can have one or more roles to fulfill their daily job. For testing of a security role, in many cases users are created in the Active Diretory for test purposes. When this user is imported in AX, you can assign multiple roles and start testing. To do this, you have to log on as a different user.

With help of the Security Development Tool (SDT), it is possible to open a new test workspace where it will be restricted for a selected role. This is applicable for one role at a time. When it comes to the combinations, I see that many companies again looks for solutions like creating test users, use the consultant or key user for assigning temporary the combination of roles.

It is possible to do this with help of the SDT as well.

How can we achieve this?

When you create a new security role in AX, it is possible to add sub-roles. Include the roles you need in a new ‘Test’ role and you can test the combinations of roles.

Within this post I will also give a walkthrough for creating this role.

  1. Open System administration, Setup, Security, Security roles.
  2. Click New to create a new role. Provide the AOT name, Name and a description.
  3. From the left pane with roles, Drag and drop the roles you want to include to the Role content.
    TestMultRoles2
    At this point, you have created the role you want to test. This example includes a sales clerk who is also responsible for collections as well.
  4. Open the Security entry point permissions form from the SDT.
  5. Select the Test Role.
    Within the tree you can already see the permissions for this combination.
    TestMultRoles3
  6. Click the button Open the security test workspace. Now you can test in detail if the user can do his daily job within Microsoft Dynamics AX.

That’s all for now. Till next time!

Microsoft Dynamics AX CommunitySubscribe to this blogger RSS Feed

Comments6
  1. mesut boztasFebruary 26, 2016   

    Hi Arnaud, I have read your securty development tool series and I really get benefit from them. thanks very much.
    what I want to ask is it is possible to create a role like admin except to access development environment.
    I have created a role and add all menu Items to it :). However, system could not open due to loading of securty rights I guess.
    Do you have any idea?

    • André Arnaud de CalavonFebruary 29, 2016   

      Hi Mesut,
      First of all, thanks for reading the blogs and your comment. In multiple environments we have a similar role like you describe: all full access or read only. There is no issue with these roles encountered. You can try to delete client cache files (*.auc and *.kti files from the users appdata\local\ folder). If this does not help, I would suggest to contact your partner or create a question on the Microsoft Dynamics community. (http://community.dynamics.com)

Leave a Comment!

Your email address will not be published. Required fields are marked *