Dynamics AX Security and the Business Operation Framework

This week I have been working on a function that uses the Business Operation Framework that’s new in Dynamics AX 2012.

While developing using Administrator rights everything was working fine but when I setup a test user with the minimum security rights for the function I hit some security issues. The initial message I got was just “Access denied: Class name” and It wasn’t immediately obvious what had been missed in the security setup. So, to save you some time, if you hit this kind of error…

Access denied: Class name …. controller


Access is denied to method XXXXX in class YYYY

then it is likely you have not assigned the required server method (entry point to the service class) to the appropriate security privilege.