<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Which function to use to disable user which is no longer active</title><link>https://www.aras.com/community/f/development/3781/which-function-to-use-to-disable-user-which-is-no-longer-active</link><description>I want to write a method for disabling users which are no longer active

which function should i use?</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Which function to use to disable user which is no longer active</title><link>https://www.aras.com/community/thread/1383?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 15:56:23 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3fae6e8e-4a49-4a6e-8d0b-0d468e55ac30</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Mily,

There isn&amp;#39;t a built-in function for disabling users, but this forum thread contains AML to disable an Innovator user: &lt;a href="http://community.aras.com/en/forums/topic/how-to-deactivate-an-user-and-replace-it-with-a-new-one/"&gt;community.aras.com/.../&lt;/a&gt;

You can create a custom method to check Users&amp;#39; 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 &amp;quot;Logon Enabled&amp;quot; on the User item again.

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>