How to Set Up AutoLogout in Ax


Description:-

Open AX> System Administrator>users Select user and click user option.  In the automatic shutdown, fill in the time you want to shut down when left un-use. Default value is "0" means no auto time out!
You get to it through the user interface of AX.

Path: Administration > Users > User options button > Automatic shutdown field.
If set at 0, it will not auto-shutdown. Set it to 15 in your case! :)

For "global parameter" and for all the user at once use this job:

You need to create a job.

static void User_Timeout(Args _args)
{
    UserInfo userInfo;
    ;
    ttsbegin;
    while select forupdate * from userInfo 
        where userInfo.id=='UserId'
    {
        userInfo.autoLogOff = 15;
        userInfo.update();
        info(strFmt("Set time '%1' for user to AutoLogOff '%2'",userInfo.autoLogOff,userInfo.id));
    }
    ttscommit;
}

Related Posts

Previous
Next Post »

Thanks for comments.....