Developer forum

Forum » Integration » Deactivate missing users?

Deactivate missing users?

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

How can we avoid that missing users are deleted when importing users? We are missing a feature only to deactivate missing users to keep the history.

 

Best regards, Anders


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Anders,

You should be able to accomplish that by updating the AccessUserValidTo for imported users instead of using the "remove missing users" feature.
Users that are no longer part of the import will not have the AccessUserValidTo updated and will expire at some point.
The first time you might need to manually reset the AccessUserValidTo for all previously imported users to ensure that they will expire.

Best regards,
Morten

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Morten,

 

Thanks for quick reply. I do not think that will be a good approach as you will not be able instant to block a customer in the ERP to have access to your shop. And if your imports are not running when all users will be blocked.

 

Do you have another work around? :-)

 

Best regards, Anders

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

You could include information about the "inactive" users in the data from ERP and set the AccessUserActive state based on that?
Otherwise I have no suggestions but to add some custom code...

A) Implement a custom notification subscriber for the Dynamicweb.DataIntegration.Integration.Notifications.Integration.JobFinished notification and deactivate the users that has not been updated.

B) Implement a custom notification subscriber for the Dynamicweb.Notifications.Standard.User.OnBeforeExtranetLogin notification and validate the user against the ERP.

Maybe someone else has a better suggestion :)

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Morten,

 

Alright, can you please consider to have this included in a future release to deactive users instead of deleting (as you have for products)?

 

Best regards, Anders

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Anders,

Thanks for your input. The feature has been added to our backlog.

TFS 57386: UserProvider - Deactivate missing users

Best regards,
Morten

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Morten,

 

Has the feature reached the streets?

 

Best regards, Anders

 
Nicolai Pedersen
Reply

Nope... Just asked for an estimate. Will get back

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Anders

The feature #57386 regarding "UserProvider - Deactivate missing users" has now been implemented in Dynamicweb version 9.6.8

To upgrade please download this version from DOC:
https://doc.dynamicweb.com/rapido/download

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum