Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To append a character to a pre-existing attribute using an Azure AD custom rule, follow the steps below:

  1. Log in to the Azure portal and navigate to Azure Active Directory.
  2. Click on "Custom policies" under "Security".
  3. Click on "+ New policy" and select "B2C/IEF Policy".
  4. Name the policy and click on "Create".
  5. Under "Policy settings", click on "Identity Experience Framework" and then click on "Upload custom policy".
  6. Upload the XML file for the policy you want to modify.
  7. Find the claim rule that you want to modify.
  8. Replace the existing claim transformation with the following:

<ClaimTransformation> <InputClaims> <InputClaim ClaimTypeReferenceId="existing-attribute" TransformationClaimType="inputClaim" /> </InputClaims> <InputParameters> <InputParameter Id="character-to-append" DataType="string" Value="character-to-append" /> </InputParameters> <OutputClaims> <OutputClaim ClaimTypeReferenceId="existing-attribute" TransformationClaimType="appendClaimValue" /> </OutputClaims> </ClaimTransformation>

  1. Replace "existing-attribute" with the name of the attribute you want to modify.
  2. Replace "character-to-append" with the character you want to append.
  3. Save the XML file and upload it back to Azure AD.
  4. Test the custom rule to ensure that it works as expected.

After completing the above steps, the Azure AD custom rule will append the specified character to the pre-existing attribute.