title: How to get the email-verification link inside my custom SPI in keycloak
body: <p>I have my code below, this is inside my notification-spi project, which get triggered when a new user is created. I am able to receive the email. However i don't know how i can get the email-verification link when RequiredActions verify-email is selected by the admin who created the account in keycloak admin ui.</p>
  
  <pre><code>public void onEvent(AdminEvent adminEvent, boolean includeRepresentation) {
  
  
      EmailSenderProvider emailSender = session.getProvider(EmailSenderProvider.class);
      RealmModel realm = session.realms().getRealm(adminEvent.getRealmId());
      UserModel user = session.userCache().getUserById(adminEvent.getAuthDetails().getUserId(),
          realm);
  
      if (OperationType.CREATE.equals(adminEvent.getOperationType())) {
        LOGGER.info("OPERATION CREATE USER");
        LOGGER.info("Representation : " + adminEvent.getRepresentation());
  
        try {
          LOGGER.info("Sending email...");
          emailSender.send(realm.getSmtpConfig(), user, "Account Enrollment",
              "A new account has been created using your email.",
              "&lt;h1&gt;Account Enrollment&lt;/h1&gt; &lt;br/&gt;"
                  + "&lt;p&gt;A new account has been created using your email&lt;/p&gt;");
          LOGGER.info("Email has been sent.");
        } catch (EmailException e) {
          LOGGER.info(e.getMessage());
  
        }
      }
  
    }
  
  }
  </code></pre>
  
  <p>Any help is appreciated.</p>