Please use DI with `\OC\User\Manager` instead of using the static class