# Pre-User-Regisration-Action - write to external DB

**URL:** <https://community.auth0.com/t/pre-user-regisration-action-write-to-external-db/76519>\
**Category:** Get Help\
**Created:** [January 17, 2022, 11:49am UTC](https://community.auth0.com/t/pre-user-regisration-action-write-to-external-db/76519 "2022-01-17T11:49:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senor\_Fiorano](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Senor\_Fiorano](https://community.auth0.com/u/Senor_Fiorano)\
**Post date:** [January 17, 2022, 11:49am UTC](https://community.auth0.com/t/pre-user-regisration-action-write-to-external-db/76519/1 "2022-01-17T11:49:47Z")

</div>

Hi,

When a new user registers, is it possible to send the email address as a new record to a table in an external DB? We are looking to store these details in an AWS PostgreSQL DB…

Any help is greatly appreciated.

Many thanks,

Fiorano

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 20, 2022, 9:25pm UTC](https://community.auth0.com/t/pre-user-regisration-action-write-to-external-db/76519/3 "2022-01-20T21:25:18Z")

</div>

Hi @Senor_Fiorano,

Yes, this is possible. You should use a _post-registration action._ There is an example in this doc:

> **[Post User Registration Flow](https://auth0.com/docs/customize/actions/flows-and-triggers/post-user-registration-flow)**
>
> Learn about the Post User Registration Flow and post-user-registration Action trigger, which runs after a user has been created for a Database or Passwordless connection.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 4, 2022, 9:25pm UTC](https://community.auth0.com/t/pre-user-regisration-action-write-to-external-db/76519/4 "2022-02-04T21:25:44Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
