Swc-1025: restore leave team and remove user