title: Reading Extension Claims in Azure AD B2C
body: <p>I have 2 claims that I want to store in the Directory for my application to use. These are not available for the user to edit however is available for the application to read from the Token.</p>
  
  <p>The BuiltIn policies are able to retrieve the claims however, I have not had any success with retrieving these claims using Custom Policies.</p>
  
  <p>Reading through <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-create-custom-attributes-profile-edit-custom#next-steps" rel="nofollow noreferrer">Next Steps</a> of the article “Creating and using custom attributes in a custom profile edit policy” the claims will need to be added to the RP and TechnicalProfile to read from Directory. I accordingly updated the RP and as well the TP's that read from Directory such as </p>
  
  <pre><code>&lt;TechnicalProfile Id="AAD-UserReadUsingAlternativeSecurityId"&gt;
  &lt;TechnicalProfile Id="AAD-UserReadUsingObjectId"&gt;
  &lt;TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email"&gt;
  &lt;TechnicalProfile Id="AAD-UserReadUsingEmailAddress"&gt;
  </code></pre>
  
  <p>Unable to figure out what might be missing to retreive the 2 extension claims. </p>