Attached to this post is a sample xpo file, the SecurityProfiler tool, that is compatible with Microsoft Dynamics AX 4.0 and provides similar functionality as the AX 2009 version as detailed here: http://blogs.msdn.com/b/emeadaxsupport/archive/2010/05/25/ax-2009-securityprofiler-tool.aspx

The attached tool tracks what security keys are being used when a user navigates thru the application. 
The existing AX class we hook into gets used every time a form or report is opened in AX so the tool will slow performance down – so don’t load this in a production environment, only use it on a test system. 

For usage, follow the steps given for the AX 2009 version.

Disclaimer: This programming example is for illustration purposes only. Microsoft disclaims all warranties and conditions with regard to use of the programming example for other purposes. Microsoft shall not, at any time, be liable for any special, direct, indirect or consequential damages, whether in an action of contract, negligence or other action arising out of or in connection with the use or performance of the programming example. Nothing herein should be construed as constituting any kind of warranty.

--------------------------------------------------

This tool should not be loaded into a Microsoft Dynamics AX production environment.

--author: Becky Newell
--editor: Anup Shah
--date: 05/Jan/2011