Implement configurable role mapping and hierarchy