Developer forum

Forum » CMS - Standard features » Users in user groups based on smart searches dissapear

Users in user groups based on smart searches dissapear

Davy Capiau
Reply

Hi,

We're using smart searches to populate several user groups. We've noticed some groups were suddenly empty:

 

When clicking on edit > save the users reappear

I've tried running the user index before, but it didn't change anything.

What could be the solution here?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Are you integrating your users - importing from somewhere? Then make sure you do not overwrite the AccessUserGroups field as part of that integration. Alternative schedule that user smart searches to run after the integration job.

The index is not used for user smart searches, so I do not belive that is the source of problem.

BR Nicolai

Votes for this answer: 1
 
Davy Capiau
Reply

Hi Nicolai,

It's indeed imported. I don't have a field mapping to the AccessUserGroups field, but I've got a destionation group selected. So I presume that's the same?

I've checked the scheduled task for the SmartSearch Calculation. This was inactive. Restarting it fixed the issue.

The problem now is that there is a small t!me gap between the scheduled tasks of the customer import and the SmartSearch. How can I avoid this?

Fyi the destination group of the customers is a general customer group.

Kr

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Yes, that would be the same - the group associtation in Dynamicweb up until dw10 has this information in this weird field (changed in dw10 to a be a real relation table, finally).

So when your import runs, the information is overwritten.

Great you found the scheduled task. You cannot avoid a small delay as it is now.

You can mark the groups field to not being written to when you update exising users - but only when creating new records - you do that on your mappings:

https://doc.dynamicweb.com/documentation-9/integration/integration-framework/data-integration-activities#21149

In the data column mapping in the dump below - the cute and secret icon with 2 arrows - click that, and it changes to be one arrow, and it will only be written to when creating new users.

 

You must be logged in to post in the forum