Share via

B2C edit profile API connector

Claudio 21 Reputation points
2022-01-30T16:07:50.65+00:00

Hello,

I have activated the user flow for "profile editing", but I need it to call an API connector as the "signup and signin" user flow does. I need this in order to validate a field in the dialog which needs to be checked by my application. Also, I need this flow to pass the value "after" the profile was edited, so I can save it. How do I achieve this? With the "signup and signin" I used the API connectors "before creating user" and "before including application claims in token". Here I would expect something like "before editing profile" and "after editing profile".

Thank you,
Claudio.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments

Answer accepted by question author

AmanpreetSingh-MSFT 56,971 Reputation points Moderator
2022-01-31T09:11:10.783+00:00

Hi @Claudio • Thank you for reaching out.

Unfortunately, as of now, the API connector is available only for Signup/Sign-in user flows and not for Profile Editing user flow. To achieve this, you need to switch to B2C custom policy and add RESTful technical profile to be used as API connector.

You can then add orchestration step in the Profile Edit user journey to invoke the RESTful technical profile, as shown below:

<OrchestrationStep Order="8" Type="ClaimsExchange">  
	<ClaimsExchanges>  
		<ClaimsExchange Id="RESTfulApiExchange" TechnicalProfileReferenceId="yout-RESTful-technical-profile" />  
	</ClaimsExchanges>  
</OrchestrationStep>  

You may also consider posting an idea at the User Voice portal for supporting API Connector in Profile Editing User flows. This is monitored by the product team for feature enhancements.

-----------------------------------------------------------------------------------------------------------

Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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