question

SeanKnox-9643 avatar image
0 Votes"
SeanKnox-9643 asked SeanKnox-9643 answered

With B2C combined signinsignup policy is it possible to detect a user doesnt have an account and automatically flow to creation?

In firebase and identityserver I can easily setup policies that can detect if a user doesn't have an account then push them towards signup flow. Is there a way to do the same with B2C. Sample screenshots below. First is firebase, second is b2c. Currently all the example I've found have two separate paths, user tries to sign in, receives validation warning, then looks for signup button. You can see below how the firebase example is much simpler for the user.


133675-image.png


133718-image.png


azure-ad-b2c
image.png (105.7 KiB)
image.png (30.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JitendraRai-2073 avatar image
0 Votes"
JitendraRai-2073 answered

Thanks and it can be achieved using custom policy/Subjourney/rest api to validate the user existence by Graph or rest api call and then based on conditional value check then call either signup policy technical profile to create user or call graph api or rest api to delete current user. There is subjourney steps you can use for more robust.

Please find below reference :-

  1. https://docs.microsoft.com/en-us/azure/active-directory-b2c/subjourneys

  2. https://docs.microsoft.com/en-us/azure/active-directory-b2c/validation-technical-profile

  3. https://github.com/azure-ad-b2c/rest-api

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SeanKnox-9643 avatar image
0 Votes"
SeanKnox-9643 answered

Accepted answer. Thank you! I wish this was a lot easier, but perhaps y'all are working on b2c v2 to compete with Firebase and the new identity server :)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.