Developer forum

Forum » Integration » Generate Passwords overwrites edited passwords

Generate Passwords overwrites edited passwords

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have an integration job with NAV, we retrieve users from NAV and save them in DW or update their details.

In the process, we are using the "Generate password for users". But I have noticed that if a user changes their password, the password is overwritten upon sync. 

How is this Password generation designed to work? Will it always generate a new password or it will generate it only for new users?

Is there any way I can ensure that we generate passwords just for new users and we leave untouched the passwords after creation?

Thank you,
Adrian


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Adrian,

 

In the column mapping you can can set it to be applicable on Create only https://doc.dynamicweb.com/documentation-9/integration/integration-framework/data-integration-activities#21149

 

Best Regards,

Nuno Aguiar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nuno,

Thank you for the feedback.

I am using this option:

Maybe there is another option.

Thank you,

Adrian

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Adrian,
try to remove the column mapping for the AccessUserPassword field if you have it in your job.
BR, Dmitrij

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dmitrij,

I don't have the column mapping in my job.

Thank you,
Adrian

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Adrian,
maybe it can not find the existing user, what setting do you have in the "User key field"?
BR, Dmitrij

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dmitrij,

I am using AccessUserExternalID as key field.

Adrian

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Adrian,
I wasn't able to reproduce this issue, used UserProvider 3.0.13 and a mapping with those columns:

maybe something is diffent in your job so it can not find existing user and always generates new password.
If you can not get it to work with a settings like that using last UserProvider version then you can send me your job xml and source xml files to: dbe@dynamicweb-cms.com
so I can try to reproduce it
BR, Dmitrij

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dmitrij,

Thank you for the response.

I have investigated further and apparently, they have also defined users directly in DW.

And this issue happened for a user that did not have a value for ExternalUserID. The confusion was related to the value of the CustomerNumber they have indicated and they have 2 users with the same CustomerNumber but only one of them comes from NAV.

I would assume the reason for that is that we might receive users from NAV without ExternalUserID? How should I handle this situation?

Thank you,
Adrian

 

You must be logged in to post in the forum