Answers.Body: <p>You could use the <code>EVENT_AFTER_SAVE</code> event to handle this, if you don't need the external call to be made before the user has verified their email.</p>
  <p>Something like this:</p>
  <pre><code>Event::on(
      User::class,
      User::EVENT_AFTER_SAVE,
      function(ModelEvent $event) {
          /** @var User $user */
          $user = $event-&gt;sender;
  
          // If this is a new user
          if ($event-&gt;isNew) {
              // Call external system here
          }
      }
  );
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-01T17:49:33.387Z
Answers.Text: Thank you that's exactly what I was looking for since account verification won't be needed for the store but we still need to create a new customer on their internal system.
Answers.UserDisplayName: spence
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-30T16:41:50.633Z
Answers.LastActivityDate: 2020-11-30T16:41:50.633Z
Answers.UserDisplayName: Martin Spain
Body: <p>I'm trying to add an action after user signup so that we can post the clients external system so we can retrieve a customer number that we require. My question is does
  EVENT_BEFORE_VERIFY_EMAIL run as soon as the user signs up or is their another method of achieving this.</p>
  
Tags: <users><modules>
Title: After signup action
ThreadText: # After signup action
  
  (Asked by: username_0 on 2020-11-27)
  
  I'm trying to add an action after user signup so that we can post the clients external system so we can retrieve a customer number that we require. My question is does
  EVENT\_BEFORE\_VERIFY\_EMAIL run as soon as the user signs up or is their another method of achieving this.
  
  **Tags:** users, modules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-11-30. Score: 2 | Accepted answer
  
  You could use the `EVENT_AFTER_SAVE` event to handle this, if you don't need the external call to be made before the user has verified their email.
  
  Something like this:
  
  ```
  Event::on(
      User::class,
      User::EVENT_AFTER_SAVE,
      function(ModelEvent $event) {
          /** @var User $user */
          $user = $event->sender;
  
          // If this is a new user
          if ($event->isNew) {
              // Call external system here
          }
      }
  );
  
  ```
  
  > **Comments:**
  > **username_0**: Thank you that's exactly what I was looking for since account verification won't be needed for the store but we still need to create a new customer on their internal system.  
  
  ---
  
  