Listen on add/change/remove users

Hi there,

I would like register an EventListener to monitor changes under /hippo:configuration/hippo:users as in

        <property name="nodeAddedEnabled" value="true"/>
        <property name="nodeRemovedEnabled" value="true"/>
        <property name="propertyAddedEnabled" value="true"/>
        <property name="propertyChangedEnabled" value="true"/>
        <property name="propertyRemovedEnabled" value="true"/>
        <property name="absolutePath" value="/hippo:configuration/hippo:users"/>
        <property name="deep" value="true"/>
        <property name="eventListener">
            <bean class="my.stuff.MyListener">
            </bean>
        </property>
    </bean>

This does not trigger.

If I replace the absolutePath to be under /content/my/things then the Event is beeng fired as expected.

Isn’t it possible to monitor changes in the configuration ?

Hi,
The reason for this behavior most probably is that the user that is logged into the repository does not see nodes below /hippo:configuration/hippo:users other then his own. E.g. if this listener lives in the delivery tier, and it’s a live request, the logged in used is ‘liveuser’ which cannot see other users, see [1].

How to solve it would depend on your use case.

HTH
Jeroen

[1] https://documentation.bloomreach.com/library/concepts/security/hst-users.html

Thank you Jeroen, that has helped already.

However, I would like to identify users, that do changes under /hippo:configuration/hippo:users via cms interface.

What approach would be considered clean here?

Thanks in advance!