Azure AD B2C - Prevent email change in password reset journey using custom policy

Gangarde, Sachin 60 Reputation points
2024-12-27T22:42:52.8966667+00:00

We are using custom policies to allow users to reset their password. In the journey, when user is resetting the password, it provides a step to change the username/email, which we don't want to offer to end user.

Is there any way to prevent that step to be shown to user or remove from password reset user journey?

Below is the code for the same.

<UserJourney Id="PasswordReset">
	<OrchestrationSteps>
		<OrchestrationStep Order="1" Type="ClaimsExchange">
			<ClaimsExchanges>
				<ClaimsExchange Id="PasswordResetUsingEmailAddressExchange" TechnicalProfileReferenceId="LocalAccountDiscoveryUsingEmailAddress" />
			</ClaimsExchanges>
		</OrchestrationStep>
		
		<OrchestrationStep Order="2" Type="ClaimsExchange">
			<Preconditions>
				<Precondition Type="ClaimsExist" ExecuteActionsIf="true">
					<Value>objectId</Value>
					<Action>SkipThisOrchestrationStep</Action>
				</Precondition>
			</Preconditions>
			<ClaimsExchanges>
				<ClaimsExchange Id="SelfAssertedRegError" TechnicalProfileReferenceId="SelfAsserted-RegError" />
			</ClaimsExchanges>
		</OrchestrationStep>

  		<OrchestrationStep Order="3" Type="ClaimsExchange">
			<ClaimsExchanges>
				<ClaimsExchange Id="NewCredentials" TechnicalProfileReferenceId="LocalAccountWritePasswordUsingObjectId" />
			</ClaimsExchanges>
		</OrchestrationStep>
		<OrchestrationStep Order="4" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
	</OrchestrationSteps>
	<ClientDefinition ReferenceId="DefaultWeb" />
</UserJourney>

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
730 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,665 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.