Skip to content

Latest commit

 

History

History

delete-my-account

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Delete my account

This sample policy shows how to delete a local or social account from the directory. To delete an account, user needs to sign-in. The policy checks whether the account exists in the directory (specially for social account that user can sign-in first time). If account exists, the policy presents a warning page and let the user choose to continue. On continue, the policy invokes an Azure AD technical profile that deletes the account and present the account has been deleted message.

A diagram of screenshots walking through the user flow.

Live demo

The live demo demonstrates the delete my account experience. To test the policy, follow these steps:

  1. If you don't have an account, create a local account with your email address.
  2. Run the B2C_1A_Demo_delete_my_account policy to delete your account.
  3. Complete the sign-in process and then select continue to delete your account.

Community Help and Support

Use Stack Overflow to get support from the community. Ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before. Make sure that your questions or comments are tagged with [azure-ad-b2c]. If you find a bug in the sample, please raise the issue on GitHub Issues. To provide product feedback, visit the Azure Active Directory B2C Feedback page.

Notes

This sample policy is based on SocialAndLocalAccounts starter pack. All changes are marked with Sample: comment inside the policy XML files. Make the necessary changes in the Sample action required sections.