Add ability to configure ROLEs on Repositories
(cherry picked from commit 69378d69109b5bc8af1d71b3e63493a6e76dc037)