Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Deny User Sync for given user

Avatar

Community Advisor

Hi All,

I have set up user sync and it works fine for desired properties for users under /home. I followed User Synchronization . However for user (12345) the properties node at /home/users/1/12345/properties , I do not want the user sync to work. Is there a configuration or setting that can deny user sync for given path?

I understand that I can do the deny for a given node name, but it will be the same for all users. For eg, if I ignore 'properties' the properties node will not sync for all users, not just user 12345. In the OSGi Config "AEM Communities User Sync Listener" I set Ignorable Nodes to the path but the sync still happens for that path. It seems we can only use node names.

Please suggest.

Using AEM 6.2 SP1 FP3 cfp14

Regards,

Shubham

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi Subham

You can achieve the same by configuring "Package Filters" in Vault Package Builder Factory OSGI Factory Configuration (socialpubsync-vlt/desired config) on desired publish instance.

Filter format: path|+include|-exclude (package.filters)

Please find the attached snapshot for your reference, kindly do let me know if it helps.

1616372_pastedImage_1.png

Note : if you made the user to be part of any group, in that case sync will happen as for this case the sync is happening at group level with "rep:members" property and not on user level.

Thanks

Prem

View solution in original post

5 Replies

Avatar

Community Advisor

I am no expert on this but I guess you have to use Node name not node path for Ignorable Nodes

e.g. if user 12345 is at /home/users/c/c6cJVFdgkycfp0oK7dlr then you may need to add c6cJVFdgkycfp0oK7dlr



Arun Patidar

Avatar

Community Advisor

Thanks Arun

yeah, thats what it seems when I tried the path hoping to see if path works for Ignorable Nodes.

The issue is if user 12345 is at /home/users/c/c6cJVFdgkycfp0oK7dlr the property that changes and triggers User Sync frequently  is at /home/users/c/c6cJVFdgkycfp0oK7dlr/properties. If I add 'properties' node name under Ignorable properties then this will apply to all users not just 12345.

Avatar

Correct answer by
Level 4

Hi Subham

You can achieve the same by configuring "Package Filters" in Vault Package Builder Factory OSGI Factory Configuration (socialpubsync-vlt/desired config) on desired publish instance.

Filter format: path|+include|-exclude (package.filters)

Please find the attached snapshot for your reference, kindly do let me know if it helps.

1616372_pastedImage_1.png

Note : if you made the user to be part of any group, in that case sync will happen as for this case the sync is happening at group level with "rep:members" property and not on user level.

Thanks

Prem

Avatar

Community Advisor

Hi Arun, Sorry to comment without trying , let me try what you suggested and see if that works for us.

UPDATE: This works. The thing to note is I was looking to not trigger user sync based on /home/users/c/c6cJVFdgkycfp0oK7dlr/properties, now the user sync will not trigger for any change under /home/users/c/c6cJVFdgkycfp0oK7dlr itself

Thanks

Avatar

Community Advisor

Thanks Prem,

I will try out your suggestion

UPDATE: This option works as well. Using this I can exactly deny the "/home/users/12345/properties" node for the user 12345 and for the same user allow user sync for other properties under /home/users/12345