Give two ways through which colonial government controlled the migration of the Africans to urban centers

Give two ways through which colonial government controlled the migration of the Africans to urban centers