Skip to content

Instantly share code, notes, and snippets.

@IT-Delinquent
Last active November 3, 2022 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IT-Delinquent/d0cbd2e3c478f371e318f61cce946dc2 to your computer and use it in GitHub Desktop.
Save IT-Delinquent/d0cbd2e3c478f371e318f61cce946dc2 to your computer and use it in GitHub Desktop.
dirtyGetAndUpdateAzureADAttributes
$marketingUsers = Get-AzureADUser -Filter "Department eq 'Marketing'"
foreach($user in $marketingUsers){
Set-AzureADUser -ObjectID $user `
-StreetAddress '51 River St.' `
-City 'Ridgefield' `
-State 'CT' `
-PostalCode '06877' `
-Country 'United States'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment