Developer forum

Forum » Development » Update User SmartSearch and SmartSearch based UserGroups

Update User SmartSearch and SmartSearch based UserGroups

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a situation where I populate a few UserGroups based on some smart searches.
These groups are used for Permissions.
The challenge here is that some of the properties used for the SmartSearches may change outside of DW and I need to update the SmartSearch and UserGroups after I made the sync with the external system.?
Is there any method for Updating both the SmartSearch and the UserGroups programmatically?

Thank you,

Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

Attached find the scheduled task that handles this in DW.

You can see how we execute the smartsearch and handle the result.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you very much.
Adrian

 

You must be logged in to post in the forum