WindowsMembershipProvider remove user



I had a user in the AD which was removed. The user is still in episerver though. Shouldn't it be removed from episerver (tblSynchedUser?) when it is removed from AD?

Sep 18, 2018 11:42

You probably need to use the LDAP provider to get that behaviour.

The only sync that occurs (I think) is for the roles when user calls Validate() or when user or someone else calls GetRolesForUser().

Sep 19, 2018 11:28

'LDAP provider' Which provider is that?

When I look at a user in epiadmin, the GetRoles method should run I would guess. That didn't update the user though.

Sep 19, 2018 15:10

The one called ActiveDirectory*Provider. It's mentioned here with some small adjustments that are good to do:

Looking again it looks like GetRolesForUser is only re-synch'ing if it's the current user calling it with current user's username as input and that call is not cached.

Otherwise you will just get the data from tblSynched*.

Sep 19, 2018 15:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.