Compute student role.