掲示板

Deactivate or Delete users that haven't logged in in 6 months

6年前 に Michael Vu によって更新されました。

Deactivate or Delete users that haven't logged in in 6 months

New Member 投稿: 1 参加年月日: 17/05/08 最新の投稿
Hi, I'm using the most current version of Liferay CE. Wondering if there is a way to Deactivate or Delete users that don't have any activity or logins within a certain amount of time. For example, a user hasn't logged in in 6 months, I'd like to deactivate that user from being able to log in without the admin letting them back in. I don't see this feature anywhere and was wondering if there was a way to add it.

Thanks!
6年前 に Jenny Chen によって更新されました。

RE: Deactivate or Delete users that haven't logged in in 6 months

New Member 投稿: 8 参加年月日: 10/09/20 最新の投稿
You might want to check Liferay's default password policy. It's more of a workaround rather than exactly what you want though. You can see if you can manipulate the lockout which usually then requires an Administrator to re-enable.

Other than that, you can try creating an improvement ticket on JIRA in the form of an LPS so the core developers can see if it's viable to add this feature or custom develop it using a EXT/hook/module (depending on your Liferay version).
thumbnail
6年前 に Olaf Kock によって更新されました。

RE: Deactivate or Delete users that haven't logged in in 6 months

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
Michael Vu:
For example, a user hasn't logged in in 6 months, I'd like to deactivate that user from being able to log in without the admin letting them back in.


You can easily implement this through the API. For 6.2, Scriptcenter is available on Marketplace, which even has a sample script for this purpose (click through to their homepage). You might have to adopt this script for your own purpose (and probably install scriptcenter on a 6.2 installation to get to the script's source).

All of Liferay's data is available through an API, this is the way to go. If you don't want to go the scripting way (as it's tedious to work with Liferay's built-in-scripting), you can easily develop&deploy a plugin that does exactly this - either scheduled daily, weekly etc, or on demand.