Federal law recognizes the inherent authority of Indian tribes and tribal organizations to exercise an employment preference for their own members and other Indians. It's usually referred to as tribal or Indian preference.  It's legal and it's been around for almost 200 years.