Perhaps "lawful" and "illegal" are the wrong words - what would be better is "actions that would permit grounds for a claim against x company if improperly administered".
I too have been involved in recruiting, however, production of government-issued photographic ID at each stage permits the identification where required without resulting in potential for discriminatory actions.