November Happy Hour will be moved to Thursday December 5th.

WindowsMembershipProvider remove user

Vote:
 

Hi!

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?

#196957
Sep 18, 2018 11:42
Vote:
 

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().

#196997
Sep 19, 2018 11:28
Vote:
 

'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.

#197023
Sep 19, 2018 15:10
Vote:
 

The one called ActiveDirectory*Provider. It's mentioned here with some small adjustments that are good to do: https://dev.solita.fi/episerver/2016/01/08/active-directory-integration-with-episerver.html

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*.

#197024
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.