That should be enough to work around the SeeQueue cache, although I'd
probably make the 3rd line just a
delete $session{'CurrentUser}{'_principal_obj'}
and let RT reload the Principal when it needs it. That avoids any
potential "what?" happening.