是否有 Plone 4 用户和组审核跟踪?
我已经成功创建了一个 Plone 4 (Plone 4.0.7
) 组,其唯一目的是管理用户。
理想情况下,我们希望对谁在网站上创建/更改用户/组进行审计跟踪。是否有任何现有功能可以做到这一点,如果没有,实施起来会很困难吗?
I have successfully created a Plone 4 (Plone 4.0.7
) Group whose sole purpose is to manage users.
Ideally we'd like an audit trail of who creates/changes users/groups on the site. Is there any existing functionality available to do this, if not would it be a difficult thing to put in place?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,Plone 中不提供此功能。您必须为适当的事件注册您的订阅者。
已可用的事件有:
(Products/PluggableAuthService/interfaces/events.py)
在角色更改期间不会引发事件。您必须为此创建自己的事件,然后在某个地方引发它(一个好点可能是 plone.app.controlpanel.usergroups.py#L319。您需要覆盖 此浏览器视图)
This functionality is not available in Plone by default. You have to register your subscribers for proper events.
The events already available are:
(Products/PluggableAuthService/interfaces/events.py)
There's not an event raised during roles changes. You have to create your own event for that and then raise it somewhere (a good point could be plone.app.controlpanel.usergroups.py#L319. You'll need to override this browserview)
有一个名为 collective.AuditLog 的新产品可以部分回答这个问题。
正如贾科莫早些时候所说,角色变更期间不会引发任何事件。但是,您可以使用 AuditLog 来跟踪用户何时添加、删除,甚至根据需要跟踪他们何时登录和注销。这些都是使用内容规则触发器完成的。
如果您为角色更改创建了自己的事件,则也可以将其用作 AuditLog 的内容规则触发器。
有点晚了,但希望这会对偶然发现这个问题的人有所帮助。
There is a new product called collective.AuditLog that can partially answer this.
As Giacomo said earlier there is not an event raised during roles changes. However, you could use AuditLog to track when users are Added, Removed, and even when they log in and log out if you wanted. These are all done using Content Rule triggers.
And if you created your own event for roles changes, you could use that as a content rule trigger for AuditLog as well.
A little late, but hopefully this will help someone who stumbles across this question.