Code: X++ script to disable AX users
If you are looking for script to quickly disable AX users. This way you can keep people out of the AOS without actually needing to remove the user. Three approaches for the code: 1. Simple Job to disable the specified user in UserInfo table. static void disableUsers(Args _args) { UserInfo userInfo; ; //a00008 is the user id which we want to disable. while select forUpdate userInfo where userInfo.id == 'a00008' { if(userInfo) { ttsBegin; userInfo.enable = 0; userInfo.update(); ttsCommit; ...