Developer forum

Forum » Integration » Importing users Password question

Importing users Password question

Dmitrij Jazel
Reply

Hi guys,

On current solution, When importing ERP data with Integration Module, all users are getting Default password that is included in the XML that is beying sent.

What are our plans:

1) Remove Password field from incomming XML.

2) Remove password field mapping from import job mapping.

In this way we would allow to keep their password if they had password before.

Because When something changes about the user in ERP - all its data is sent to Import module once again.

This would overwrite the existing password if we would not consider making changes described in our plans.

My Question:

If we do Step 1 and 2, if new user comes in (that was nor registered in DW before), how can you set "Default password" for those new users?

DW has a feature called "Generate password for users" but no "Set default password for users that do not exist in DW yet".

Issue is, that this user will be included in next ImportXML if his data changes in ERP, and he might already be registered in DW, and has his password changed.

 

Suggestions?

/Dmitrij

 

 

 

 


Replies

 
Jonas Krarup Dam
Reply
This post has been marked as an answer

Hi Dmitrij,

This is a bit of a challenge.

I think the best solution is to set up two different imports - one for adding new users, which includes passwords, and one for updating existing users, which does not.

Of course, this means that you will have to change the ERP to generate two differnet XML documents, based on wether the users have previously been exported from the ERP system.

 

I hope this helps,

Regards, Jonas

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

>> Of course, this means that you will have to change the ERP to generate two differnet XML documents - See more at: http://developer.dynamicweb.com/forum/integration.aspx?ThreadID=41979#sthash.AM9Sn68J.dpuf

Or use a single XML source and two XSLT files that generate an Insert and an Update source. I use something similar to create accounts or deactivate existing ones.

Imar

 
Dmitrij Jazel
Reply

Ahh this is great info :)

Can see how it could work perfectly. But ATM we can't generate 2 different XML files, and my XSLT skills got a bit rusty, but that is great info! :)

I think we will try to go with Jonas option, in this way we would have more control/overview over the input.

Appreciate guys!

 

/Dmitrij

 

You must be logged in to post in the forum