Which function to use to disable user which is no longer active

オフライン
I want to write a method for disabling users which are no longer active which function should i use?
Parents
  • Hi Mily, There isn't a built-in function for disabling users, but this forum thread contains AML to disable an Innovator user: community.aras.com/.../ You can create a custom method to check Users' last_login_date property and determine whether they have logged in recently. If your logic determines that the user is no longer active, you can use the AML from the above forum thread to disable the user. If you later decide that a User should be reactivated, you just have to check off "Logon Enabled" on the User item again. Eli
    Eli Donahue Aras Labs Software Engineer
Reply
  • Hi Mily, There isn't a built-in function for disabling users, but this forum thread contains AML to disable an Innovator user: community.aras.com/.../ You can create a custom method to check Users' last_login_date property and determine whether they have logged in recently. If your logic determines that the user is no longer active, you can use the AML from the above forum thread to disable the user. If you later decide that a User should be reactivated, you just have to check off "Logon Enabled" on the User item again. Eli
    Eli Donahue Aras Labs Software Engineer
Children
No Data