---
label: 'Configuring how user accounts are created and deleted'
related:
- core.security
- user.overview
---
{% set account_settings_link_text %}{% trans %}Account settings{% endtrans %}{% endset %}
{% set account_settings_link = render_var(help_route_link(account_settings_link_text, 'entity.user.admin_form')) %}
{% trans %}Goal{% endtrans %}
{% trans %}Configure settings related to how user accounts are created and deleted.{% endtrans %}
{% trans %}What are the settings related to user account creation and deletion?{% endtrans %}
- {% trans %}You can make it possible for new users to register themselves for accounts, with or without email verification or administrative approval. Or, you can make it so only administrators with Administer users permission can register new users.{% endtrans %}
- {% trans %}You can configure what happens to content that a user created, if their account is canceled (deleted).{% endtrans %}
- {% trans %}You can edit the email messages that are sent to users when their accounts are pending, approved, created, blocked, or canceled, or when they request a password reset.{% endtrans %}
{% trans %}What are variables in email message text?{% endtrans %}
{% trans %}Variables are short text strings, enclosed in square brackets [], that you can insert into configured email message text. When an individual message is generated, data from your site is substituted for the variables. Some commonly-used variables are:{% endtrans %}
- {% trans %}[site:name]: The name of your website.{% endtrans %}
- {% trans %}[site:url]: The URL of your website.{% endtrans %}
- {% trans %}[site:login-url]: The URL where users can log in to your site.{% endtrans %}
- {% trans %}[user:display-name]: The user's displayed name.{% endtrans %}
- {% trans %}[user:account-name]: The user's account name.{% endtrans %}
- {% trans %}[user:mail]: The user's email alias.{% endtrans %}
- {% trans %}[user:one-time-login-url]: An expiring URL that a user can use to log in once, if they need to reset their password.{% endtrans %}
{% trans %}Steps{% endtrans %}
- {% trans %}In the Manage administrative menu, navigate to Configuration > People > {{ account_settings_link }}.{% endtrans %}
- {% trans %}Select the method you want to use for creating user accounts, and check or uncheck the box that requires email verification, to match the settings you want for your site.{% endtrans %}
- {% trans %}Select the desired option for what happens to content that a user created if their account is canceled.{% endtrans %}
- {% trans %}Optionally, edit the text of email messages related to user accounts.{% endtrans %}
- {% trans %}Verify that the other settings are correct.{% endtrans %}
- {% trans %}Click Save configuration. You should see a message indicating that the settings were saved.{% endtrans %}