Developer forum

Forum » Dynamicweb 10 » User Provider "Deactivate missing users"

User Provider "Deactivate missing users"

Andrejs Zavorotnijs
Reply

Hello all

 

Something seems to have changed in the “Deactivate missing users” option 

I’m asking because when this option is enabled, all users become inactive if no Destination Groups are selected.

Tested in DW10 R1 and DW9 9.20.1

 


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Andrejs,
If you want to deactivate users from specific groups than you need to set the option:
"Delete users only from groups that are imported to" and have a column mapping to "AccessUserGroups" column or select the "Destination group" in the settings.
Otherwise the missed users will be deactivated.
BR, Dmitrij

 
Andrejs Zavorotnijs
Reply

Hello Dmitiry

We want to deactivate users which are not in source and persist in Access users table.

We have AccessUserGroups in mapping and Deactivate missing users = enabled, if nothing configured in Destination groups all users in solution become inactive(except admins)

Just tried with 

  • AccessUserGroups in mapping
  • Delete users only from groups that are imported to = enabled
  • Deactivate missing users = enabled
  • Nothing in Destination groups

Same result all users deactivated

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Andrejs,
can you check if you are using the DataIntegration 10.20.6 package?
https://www.nuget.org/packages/Dynamicweb.DataIntegration/10.20.6
BR, Dmitrij

 
Andrejs Zavorotnijs
Reply

Hi Dmitriy

Nope I'm far from that, currenly 10.18.12 so it is currently R3 in my local solution.

 

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi Andrejs,

I see the confusion. In your first post, you mentioned that you had tested it on R1. The bug is fixed in R1. If you're actually on R3, then it hasn't been merged that far down. We're keeping R2–R4 more stable and only merging very critical bugs into those versions.
If you haven't already read our release policy, please take a look: https://doc.dynamicweb.dev/documentation/fundamentals/dw10release/releasepolicy.html

BR Rasmus Sanggaard

 
Andrejs Zavorotnijs
Reply

Hello Rasmus

That is my fault, that I didn't checked current release version, things happened so fast.
Seems like around month ago installed R1 version became R3 so fast.

I will test it in current R1 version, will let you know.

 
Andrejs Zavorotnijs
Reply

Hi Dmitriy and Rasmus

In the latest R1 version, the “Deactivate missing users” option still doesn’t work when no destination group is selected even in the scenario Dmitriy described.

In our import, we have multiple groups (1,2,3) defined in AccessUserGroups.

 

Found in documentation about Destination user provider

So only option is to use Destination group.

As I understood same logic in DW9?
 

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Andrejs,
In DW10 solution: can you check the Cache settings in the job or refresh service caches manually after the import to check the data after the import?


The logic is the same in DW9.
Except the data is stored differently in DW9/DW10: In DW10 there is a new table called AccessUserGroupRelation where the relations are stored while in DW9 the relations are in the AccessUser.AccessUserGroups column (and it is no longer used in DW10)

I was not able to reproduce the issue in DW10, using the options mentioned here.

BR, Dmitrij

 
Andrejs Zavorotnijs
Reply

Hi Dmitriy

 

Already configured

And in databse only my admin user account and groups with AccessUserActive = true

In attachment my imported file, just edit existing group id's

 
Andrejs Zavorotnijs
Reply
This post has been marked as an answer

Hi Dmitriy

I included 1 extra service cache in job and this fixed an issue

Votes for this answer: 1

 

You must be logged in to post in the forum