AD B2C Guest User for the application (Local Account Type)

Malhotra, Neha Satish 0 Reputation points
2025-01-06T13:22:38.5033333+00:00

I have requirement of 'Guest User' in my application. If user clicks on 'Continue as Guest' the user should be able to enter in the application by just verifying the email-id based on OTP sent on email.

And then submit some case in the application which will send an email to do a signup on the application to track the progress of there case.

I tried to achieved this requirement in two parts :

Part 1 - Create a User in Active Directory with passwordless-custom-policy reference and redirect to my application.

Part 2 - For the sigup after case submission, I am confused on how to do this.

One approach is to mark 'RaiseErrorIfClaimsPrincipalAlreadyExists' as false during the signup so that account will get overridden when user does a signup with firstname, givenName and Password fields.

But this will be security breach - as I want to make this 'RaiseErrorIfClaimsPrincipalAlreadyExists' as false only when my custom user attribute 'isGuestAccount' = true.

Can anyone help in this please?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,991 questions
{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.