Dynamics AX tools and tutorials: Tutorial: Debugging AX while still using restricted roles (non-admin) – Bojensen Blogs
Bojensen Blogs

Dynamics AX tools and tutorials: Tutorial: Debugging AX while still using restricted roles (non-admin)


  1. Close All AX instances
  2. Open AX Development Environment (ax32.exe -development)
  3. Open AX Application (ax32.exe)
  4. Add Role that you would like to test to your UserId
    1. System Administration > Common > Users
    2. Find yourself and double click to get to the detail window
    3. Assign role that you want to test
  5. Close AX Application
  6. Set break points in AX Development Environment
  7. Create a job and add this line:
    SecurityUtil::sysAdminMode(false);
  8. From the AX Development Environment “Ctrl W” to open the application
  9. You are now in a reduced permission user and have the ability to debug.

To get your environment back to full admin, re-execute the job in step 7 with a true.

Note: This will not work for EP, Services, direct BC.NET and cases using runas(), as the SecurityUtil::sysAdminMode is limited to the current session.

Dynamics AX tools and tutorials: Tutorial: Debugging AX while still using restricted roles (non-admin)

Comments are closed.