Gowtham N
Gowtham N

Reputation: 51

Validation error while uploading custom policy

I am getting this error while uploading signup policy.

Validation failed: 1 validation error(s) found in policy "B2C_1A_SIGNUP_WEB_SP" of tenant "titanidaasdevb2c.onmicrosoft.com".DisableStrongPassword is required in Technical Profile 'AAD-UserWriteUsingLogonEmail' of policy 'B2C_1A_SignUp_Web_SP' for custom password complexity or legacy password restriction with weak custom regular expression. Add "DisablePasswordExpiration, DisableStrongPassword" into PersistedClaim "passwordPolicies"

Please guide me on this.

Upvotes: 3

Views: 2083

Answers (1)

Chris Padgett
Chris Padgett

Reputation: 14674

Because you are implementing a custom complexity, you must disable the built-in complexity, by setting the passwordPolicies claim to DisableStrongPassword.

This claim value can be set in either the relying party technical profile (i.e. if the custom complexity is applicable for a specific flow):

<RelyingParty>
  <DefaultUserJourney ReferenceId="SignUpOrSignIn"/>
  <TechnicalProfile Id="PolicyProfile">
    <InputClaims>
      <InputClaim ClaimTypeReferenceId="passwordPolicies" DefaultValue="DisablePasswordExpiration, DisableStrongPassword"/>
    </InputClaims>
  </TechnicalProfile>
</RelyingParty>

Or the AAD-UserWriteUsingLogonEmail technical profile (i.e. if the custom complexity is applicable for all flows):

<TechnicalProfile Id="AAD-UserWriteUsingLogonEmail">
  <PersistedClaims>
    <PersistedClaim ClaimTypeReferenceId="passwordPolicies" DefaultValue="DisablePasswordExpiration, DisableStrongPassword" />
   </PersistedClaims>
</TechnicalProfile>

Upvotes: 10

Related Questions