# dialog\_user\_add

Source: https://zotonic.com/docs/1919/dialog_user_add

URI: https://zotonic.com/id/1919

Language: en



Show a dialog for adding a user. This creates a person [resource](/id/doc_glossary#term-resource) and adds a username / password to it.

The optional repeatable `on_success` argument runs actions after the user is created. The submitted name and email fields become properties of a published person resource; the username and password are stored as an identity in the same database transaction. The dialog can optionally send a welcome email.

The site must be writable and the current user must be allowed to use `mod_admin_identity`.

```django
{% button text="Add user" action={dialog_user_add on_success={reload}} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1919?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1919?language=en>)
