AX 2012

How to set autolog off / Automatic Shutdown to all Users in AX 2012

Posted on

Automatic shutdown timeout value is stored in UserInfo table. this job will set the timeout to 30 minutes for all users:static void Automatic_Shutdown(Args _args){    UserInfo    userInfo;    ;    ttsbegin;    while select forupdate *        from userInfo    {        userInfo.autoLogOff = 30;        userInfo.update();    }    ttscommit;}