用户不会从Liferay DB中删除 [英] Users are not getting deleted from Liferay DB
问题描述
我已经从Liferay UI中删除了用户.一段时间后,它会要求停用然后删除.某些时候只能停用.而且用户并非总是从db中退出.因此,无法进行同一用户的重新创建,因为它会抛出诸如电子邮件地址已存在或用户名欺诈存在"之类的错误.
I have deleted users from Liferay UI. Some time its asking to deactivate and then delete. some time only deactivate. And users are not going from db always. So, recreation of same user is not possible as it is throwing errors like "email address already exist or username alreasdy exist".
从UI删除后,为什么用户没有从数据库中删除?
Why user is not getting deleted from DB after deletion from UI?
我正在使用liferay-portal-6.1.1-ce-ga2.
I am using liferay-portal-6.1.1-ce-ga2.
如何解决此问题?
推荐答案
Deactivate
和Delete
是两个不同的功能.
Deactivate
and Delete
are two different functionalities.
当您Deactivate
时,用户保留在数据库中,并且仅将status
更改为停用.这就是 soft-delete 或逻辑删除,即停用的用户将无法登录,也不会出现在任何搜索等中.但是优点在于,您可以通过Activate
-ing使用户重新生活.因此,这不需要您重新创建用户,还有助于保留用户的历史记录或操作.
When you Deactivate
the user remains in the database and only the status
is changed to deactivate. This is known as a soft-delete or logical-delete, i.e. the User deactivated will not be able to login, nor will he appear in any of the searches etc. But the advantage is that you can bring the User back to life by just Activate
-ing the User. So this does not require you to re-create the User and also helps in keeping history or actions on the User.
如果要从数据库中删除用户,请转到控制面板→. 用户和组织→点击搜索所有用户→通过高级搜索或基本搜索→搜索用户.选择用户→点击停用.
If you want to delete the User from database, go to Control Panel → Users & Organizations → click on Search All Users → Search for the user either by Advanced or Basic Search → select the User(s) → Click Deactivate.
此后,请执行高级搜索→选择状态为无效→您会发现所有停用的用户→选择它们,然后单击删除.
After this, do an Advanced Search → Select the status as Inactive → You will find all the de-activated users → select them and click Delete.
希望这会有所帮助.
(感谢 @hudolejev 在下面的评论中指出这一点)
(thanks to @hudolejev for pointing this out in the comments below)
还请注意,将以下属性设置为true
以删除portal-ext.properties
中的用户,默认情况下为true
:
Please also note that the following property is set to true
to delete users in portal-ext.properties
, by default it is true
:
#
# Set this to false if users cannot be deleted.
#
users.delete=true
这篇关于用户不会从Liferay DB中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!