Forum Discussion
Dave Carthy
Oct 16, 2018Copper Contributor
Pre-Register users using AlternateEmailAddresses field for Azure SSPR
Hi Folks, I have recently implemented SSPR in Azure and I would like to pre-register everyone in the system. I would like to populate the AlternateEmailAddresses field using the command below for...
- Oct 16, 2018
Assuming you have a blabla.csv with columns UserPrincipalName to designate the user and AltEmail to designate the alternate email address, try something like this:
Import-CSV blabla.csv | % { Set-MsolUser -UserPrincipalName $_.UserPrincipalName -AlternateEmailAddresses @($_.AltEmail) }
VasilMichev
Oct 16, 2018MVP
Assuming you have a blabla.csv with columns UserPrincipalName to designate the user and AltEmail to designate the alternate email address, try something like this:
Import-CSV blabla.csv | % { Set-MsolUser -UserPrincipalName $_.UserPrincipalName -AlternateEmailAddresses @($_.AltEmail) }- Dave CarthyOct 18, 2018Copper Contributor
Hi Vasil,
Many thanks for that, it worked perfectly. I was close to getting it but it would have taken me ages to get it. Thanks again, I really appreciate the help.
Daithi