Ask Your Question

How can an Azure AD custom rule be used to append a character to a pre-existing attribute?

asked 2022-03-07 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-06-13 02:00:00 +0000

lakamha gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2022-03-07 11:00:00 +0000

Seen: 2 times

Last updated: Jun 13 '22