After looking around, I discovered (on core) [Repository::sudo()](https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Repository/Repository.php#L290) this would be a better idea than setting the user to admin, and than back to last user set.