YH-46: Automated role mapping script