title: Azure B2C Dynamics Claims Mapping
body: <p>I'm following Microsoft's guidance to enable Dynamics Portal access via Azure AD B2C.  Basics are up and running and working well.  I'm using a "Sign-In" Policy.  However, I'm having trouble with the claims mapping functionality.</p>
  
  <p>I've configured the following site settings per the instructions in the document linked below.</p>
  
  <p>Authentication/OpenIdConnect/B2C/RegistrationClaimsMapping
  Authentication/OpenIdConnect/B2C/LoginClaimsMapping</p>
  
  <p><a href="https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/azure-ad-b2c#claims-mapping" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/azure-ad-b2c#claims-mapping</a></p>
  
  <p>However, the mapped Dynamics attribute values are never (initial registration/contact creation, or subsequent logins) updated with values from Azure AD B2C, as expected based on this configuration.</p>
  
  <p>An example of the Site Setting Value that I've tried:
  address1_city=<a href="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/city" rel="nofollow noreferrer">http://schemas.xmlsoap.org/ws/2005/05/identity/claims/city</a></p>
  
  <p>If I look at the JWT form data id_token after authentication, I see the values from B2C in the payload.</p>
  
  <p>Is there an additional step not covered in the document to enable this functionality?  Is this currently broken/not yet supported?  Are my expectations of how this should be working (Dynamics attributes values updated based on B2C values) incorrect?</p>
  
  <p>Thanks!</p>