Developer forum

Forum » Integration » Import users to specific group

Import users to specific group

Anders Ebdrup
Reply

Hello,

 

Is it possible with the Data Integration modul only to import and manage users in a specific group, so no other groups will be affected?

Say I would like to import dealers from the ERP-system into one group and manage users created on the shop in different groups, but when importing dealers missing dealers should be removed from the given group.

 

Best regards, Anders


Replies

 
Morten Snedker
Reply
This post has been marked as an answer

Hi Anders,

Is it possible to import and manage users in a specific group? Yes!

In this example all users are updated/inserted, but ONLY if they are part of group "SomeGroup" as given in the filter. So in this example user "Very VIP" will be ignored.

Is it possible to delete rows missing in import, but restricted to group? No!

But I believe for this behaviour to be undesired, so I have created an internal work item that will change the behaviour so that the "Delete missing rows" will take filters on the job into consideration. This will be implemented in 8.6.

Additional information

With 8.6 it will also be possible to run jobs parameterized on the fly. You may have one job that you call from the outside, requesting the jobrunner url. In your example you want a job that should apply for different user groups for each calling. As for now you would need separate jobs, each with an individual filter.

With 8.6 a single job called with different parameters will do:

The parameter to apply in the calling of the jobrunner.aspx would be something like
... ?jobsToRun=ImportUsers&filter={{Groups|=|Dealers}}

You may apply several filters, separated by semicolon:
.. ?jobsToRun=myJob&filter={{OrderDate|>|2014-09-01;OrderCompleted|=|1}}

 

Hope the above answers your questions - otherwise feel free to elaborate.

 

Best regards
/Snedker

Votes for this answer: 1
 
Lars Larsen
Lars Larsen
Reply

Hi Morten

This filter querystring is it documented anywhere on the doc site? I can't find any information on it!

ps. does this filter querystring work on DW9 as well?

/Lars

 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi Lars,

Yes, it also works well on Dynamicweb 9. You can find the documentation right here: https://doc.dynamicweb.com/documentation-9/integration/data-integration-module/data-integration-module#sideNavTitle1-3-1

Best regards
Morten Snedker

 

You must be logged in to post in the forum