title: Locating a user by alternate email address in Azure AD
body: <p>I currently use</p>
  
  <pre><code>(Get-MsolUser -UserPrincipalName $EmailAddress).ObjectID.Guid
  </code></pre>
  
  <p>to lookup a user by their PrincipalName in Azure AD and return their guid.  However, there are times when a user has changed email addresses due to a name change and the address I have been given is not their PrincipalName but a secondary email address.</p>
  
  <p>Is there a way to locate a user based upon an alternate email address?  Perhaps a fuzzy search?</p>