title: Email claims not populated with custom policies in Azure B2C
body: <p>I have Azure B2C with custom policies with Local Login and Microsoft Account login enabled. I have started with the starter pack and made some modifications to add my custom logic for validate and add additional claims as explained <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-custom-rest-api-netfw" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Everything works fine with Microsoft Account. But I am facing issues with Local Account Sign in.</p>
  
  <ol>
  <li><p>email claim is only populated when the user signup but not on sign-in. In case of sign-in the email is part of "signInNames.emailAddress" claim. I tried making changes as explained <a href="https://stackoverflow.com/questions/47145452/return-emails-on-custom-policies">here</a> and <a href="https://github.com/Azure-Samples/active-directory-b2c-advanced-policies/issues/24" rel="nofollow noreferrer">here</a>. I would like the email to be populate in email claim as my API uses this claim.</p></li>
  <li><p><strike>Additional calims returned from my REST API are not added to token only for Local Login. They are added for Microsoft Account.</strike></p></li>
  </ol>
  
  <p>thank you.</p>
  
  <p>Update: For point 2, its a problem with my policy file and is now fixed.</p>