# Disable Email Verification In Pre-User-Registration Trigger

**URL:** <https://community.auth0.com/t/disable-email-verification-in-pre-user-registration-trigger/167634>\
**Category:** Get Help\
**Tags:** email-verification, user-management\
**Created:** [January 6, 2025, 6:14pm UTC](https://community.auth0.com/t/disable-email-verification-in-pre-user-registration-trigger/167634 "2025-01-06T18:14:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sumansaurav](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sumansaurav/32/70627_2.png) [@sumansaurav](https://community.auth0.com/u/sumansaurav)\
**Post date:** [January 6, 2025, 7:19pm UTC](https://community.auth0.com/t/disable-email-verification-in-pre-user-registration-trigger/167634/2 "2025-01-06T19:19:33Z")

</div>

You are trying to update user fields before user is even registered using pre-user-registration action. I am not sure, if this is even possible. You can likely use post-registration-action and update user call to set this field to verified.

> [@Updating User Profile from Actions](https://community.auth0.com/t/updating-user-profile-from-actions/85206):
>
> I am wondering if anyone has had any success in updating the users profile from an action. In particular, I would like to use a URL based API to gather that information in the login process. I can get the data from the API, but it seems I can only find documentation on updating the user and app metadata. I would like to update the family\_name and given\_name of the profile. Thanks, Mark

```auto
// Use a post-registration trigger instead
// This is often more permissive with user modifications
exports.postRegistrationHandler = async (event, context) => {
  if (event.user.user_metadata?.skipEmailVerification) {
    // Use the link above to build your auth0 update API call.
    await auth.updateUser(event.user.id, {
      emailVerified: true
    });
  }
};

```

---

_[View the full topic](https://community.auth0.com/t/disable-email-verification-in-pre-user-registration-trigger/167634)._
