Issue 2290 make roles manager load lazily