User Activity

Hi, When  "sn_hr_core.hrsm_employee"  role gets added to an employee? What is the rule/script that controls adding this role?   Thanks