title: Bulk adding users to AzureAD Script error
body: <p>The goal of the script is to run and add all users with a specific job title to an AzureAD Group.
  I've tested the variable and it grab the right people and will display if I write the variable to the screen.</p>
  <p>The error message I get states &quot;ADD-AzureADGroupMember : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter.</p>
  <pre><code>#Grab all users with the job title IT Support Technician
  $User = (Get-AzureADUser -All $true | 
  Where-Object -FilterScript {$_.JobTitle -eq &quot;IT Support Technician&quot;}).ObjectId
  
  #Grab the ObjectID of the AzureADGroup
  $Branch = (Get-AzureADGroup -SearchString &quot;Test SG&quot;).ObjectId
  
  #Add each of the Users to the AzureADGroup
  $User | ForEach-Object {
  Add-AzureADGroupMember -ObjectId $Branch -RefObjectId $User
  }
  </code></pre>