title: PowerShell: update O365 AD bulk attributes through csv file
body: <p>We are trying to bulk update our Azure Active Directory. We have a excel csv list of UserPrincipalNames that we will update the Title, Department, and Office attributes</p>
  
  <pre><code># Get List of Clinical CMs
  $PATH = "C:\Users\cs\Documents\IT Stuff\Project\Azure AD Update\AD-Update-ClinicalCMs-Test.csv"
  $CMs = Import-csv $PATH
  
  # Pass CMs into Function
  ForEach ($UPN in $CMs) {
  # Do AD Update Task Here
  Set-Msoluser -UserPrincipalName $UPN -Title "Case Manager" -Department "Clinical" -Office "Virtual"
  }
  </code></pre>
  
  <p>The CSV:</p>
  
  <pre><code>User.1@domain.com
  User.2@domain.com
  User.3@domain.com
  </code></pre>
  
  <p>The Set-MsolUser command will work on its own, but it is not working as intended in this For loop. Any help or insight is greatly appreciated</p>