While check issues it could be usefull to make the link between the Ax user and the related SQL session. In the post below it is explained properly how you should do this. https://community.dynamics.com/ax/b/axfaqblog/archive/2016/08/27/disable-and-enable-users-in-ax-using-t-sql-scripts
