Forum Discussion

Dave Carthy's avatar
Dave Carthy
Copper Contributor
Oct 16, 2018
Solved

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...
  • VasilMichev's avatar
    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) }

Resources