[SPO/PNP] Bulk update UPA property with a certain value read from a CSV file

OK, so the goal of this script is to update a User Profile property (in this case Work E-mail) for several users having a CSV file as datasource.

Here goes:

  • the CSV file should look like:

and here is the script:

Enjoy!