Welcome!

If you post code, please use the ‘Insert Code’ button. Please and thank you!

# code to connect to o365

foreach($user in (import-csv "c:\file.csv")){
   # code what to do here
}