For example, we read in the introduction: “In its Communication of 4 May, the Commission highlighted the need for the EU to strengthen its external migration policy by setting up partnerships with non-EU countries.”

And below 1. “Key objectives” (page 3):
“Mobility of third country nationals across the external EU borders is of strategic importance in this regard”

According to this document, this policy of importing immigrants is to secure enough people for the workforce:
“Securing an adaptable workforce with the necessary skills which can cope successfully with the evolving demographic and economic changes is a strategic priority for Europe.”
And:
“Policies in place need to be reviewed and strengthened as the Union faces pressing labour market challenges, particularly shortfalls in skill levels and serious labour mismatches”
How they come to the conclusion that the solution of the supposed lack of labour skills by the Europeans is to get people from the 3rd world is entirely unclear to me, but it is clear that the purpose of the EU is to move people from the 3rd world to Europe.

At the bottom of page 12 we see:
“It defines a list of areas where, irrespective of their initial reason for admission, all legally staying and working non-EU nationals will be granted equal treatment to nationals“. So it does not matter if you ever have illegally entered the country. At the time the EU believes that you’re legal, you have the same social rights as everyone else:

Page 13 is clear on this: “Regarding the portability of social security rights, the EU rules on social security coordination remove disadvantages and protect acquired rights for EU citizens moving within the EU and also for all legally resident non-EU nationals with a cross-border dimension.”

On the last page we find this: “This approach includes protecting the human rights of all migrants in transit by focusing on: protecting vulnerable migrants (unaccompanied minors, asylum-seekers, victims of trafficking, stranded migrants, etc.) and on the specific needs of women; supporting capacitybuilding for law enforcement forces and referral systems; supporting prevention, protection and prosecution of criminal acts and human rights violations committed against migrants, including those travelling irregularly; and guaranteeing decent living conditions for migrants in reception centres in non-EU countries.”
Thus, you can only conclude that the EU is mainly protecting migrants and not EU citizens.