Can someone please confirm for me that if I add a user to several groups, and then call RemoveUser, that the user will in fact be removed from the security_UsersToUsersGroups table?
I ask because, in my case, using the latest code, I am seeing that my user Is not being removed from this table.
The only delete query being generated is:
exec sp_executesql N'delete from security_Permissions where [User]=@p0',N'@p0 int',@p0=7
The engine never tries to delete the user from security_UsersToUsersGroups.
Any suggestions or ideas on what might be wrong?
Thanks,
Rick
You should try to use DetachUserFromGroup
This is the query generated: