can't unassign role from user
As per my understanding, there are custom modules from which it is updating.

Try searching hooks like hook_user_insert(&amp;$edit, $account, $category) and hook_user_update(&amp;$edit, $account, $category) from custom modules. I hope they might have written a piece of code to update the roles.