Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

How to log off different user with different time in Microsoft AX?

$
0
0

Hi All,

I found the below codeby Jovan to log off all user after few minutes and upon searching also found to log off all user except admin user. However, I am looking for code to log off different user at different set time i.e for normal user 10 min, Nurse 30 min, Finance 90 min and admin no time limit. I am completly new with this code as I haven't used programming for few decades. I hope someone can help me out with my code. Thank you.

// Created on 15 October 2012 by Jovan Bulajic
static void User_Timeout(Args _args)
{
    UserInfo    userInfo;
    ;
    ttsbegin;
    while select forupdate *
        from userInfo
    {
        userInfo.autoLogOff = 30;
        userInfo.update();
    }
    ttscommit;
}

Regards,

Niresh Joshi


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>