Developer forum

Forum » Integration » Remove users not in import - but only from the import-to-group

Remove users not in import - but only from the import-to-group

Lars Larsen
Lars Larsen
Reply

Hi

I need to set up an import of users (source=XML provider) to a specific usergroup and have users from that usergroup removed from the usergroup if the users are not in the imported xml file. The users should not be completely deleted if they are member of other eg. newsletter usergroups. But if users deleted in the xml file are only member of the usergroup imported to, then the users should be deleted completely. Is this possible and how can it be achieved?


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Lars,
could you check this one https://doc.dynamicweb.com/forum/integration/user-provider-remove-missing-users?PID=1605?
Regards, Dmitrij

 
Lars Larsen
Lars Larsen
Reply

Hi Dmitriy

Yeah, I now that thread wink

I will go with the User Provider and just "Remove missing users" - having users belonging to just the import-to-group deleted if they only belong to this group. Otherwise they are not deleted.

Just wondered if I could have users deleted from the import-to-group if they belongs to other groups too. But the standard behavior is ok.

 

You must be logged in to post in the forum