Skip to main content
Skip table of contents

Notifications and Alerts in XNAT

XNAT can be configured to send automated notifications on system events to a series of email address of your choice. It also provides multiple mechanisms for allowing you to alert XNAT users.

Developer Note

This functionality has been overhauled and now uses the XAPI notifications api. You can find additional documentation and working examples of this in the Swagger XAPI browser embedded in your XNAT application by going to Administer > Site Administration > Miscellaneous > View Swagger


Notifications Prerequisite: Configure the XNAT Email Server

In order to send any automated or manual notifications, SMTP must be enabled in your XNAT and the XNAT Email Server must be properly configured. These settings can be updated at Administer > Site Administration > Email Server. Contact your local network administrator if you are not sure which settings to use here.


Editing Default Email Messages

The Notifications Admin page allows you to edit the default email messages sent to users when a variety of situations occur within your Xnat. These events are outlined below along with a list of the shortcodes used to configure the message (outlined in more detail below):

User Registration Notifications

When editing the Password Reset Email:

The email that is sent to users who request a password reset has a unique shortcode in it that must be included: RESET_LINK. This shortcode will be replaced with a clickable URL that the user must go to in order to reset their password. The link includes a newly created token that is only good for one use. This token will expire after the amount of time specified in XNAT Security Settings > User Logins/Session Controls > Alias Token Timeout.


Email Trigger EventDescriptionAvailable Shortcodes
User RegistrationThe email message sent to users upon their registration.USER_FIRSTNAME - The first name of the user who will be sent the message.
USER_LASTNAME - The last name of the user who will be sent the message.
SITE_NAME - The name of the xnat site.
SITE_LINK - The link to the xnat site.
USER_USERNAME - The username of the new user.
ADMIN_MAIL_LINK - The link to email the site admin.
New User RequestThe email message sent out when a new user account is created but has not yet been enabled.

TIME - The time of user creation.
SITE_NAME - The name of the xnat site.
SITE_LINK - The link to the xnat site.
USER_USERNAME - The username of the new user.
USER_FIRSTNAME - The first name of the new user.
USER_LASTNAME - The last name of the new user.
USER_PHONE - The phone number of the new user.
LAB_NAME - The name of the lab the new user is under.
USER_EMAIL - The email address of the new user.
PROJECT_ACCESS_REQUESTS - Projects for which the new user has access requests (blank if none)
REVIEW_LINK - The link used to accept or deny the request.
USER_COMMENTS - The comments provided to the administrator by the new user.

New User NotificationThe email message sent out when a new user account registration has been created. TIME - The time of user creation.
SITE_NAME - The name of the xnat site.
SITE_LINK - The link to the xnat site.
USER_USERNAME - The username of the new user.
USER_FIRSTNAME - The first name of the new user.
USER_LASTNAME - The last name of the new user.
USER_PHONE - The phone number of the new user.
LAB_NAME - The name of the lab the new user is under.
USER_EMAIL - The email address of the new user.
PROJECT_ACCESS_REQUESTS - Projects for which the new user has access requests (blank if none).
REVIEW_LINK - The link used to accept or deny the request.
USER_COMMENTS - The comments provided to the administrator by the new user.
New User VerificationThe email message sent to a newly registered user's email to verify the newly created account. USER_FIRSTNAME - The new user's first name.
USER_LASTNAME - The new user's last name.
VERIFY_URL - The URL used to verify the new account.
ENABLED_MESSAGE - A message indicating whether the user account is now enabled, includes a login link.
FORGOT_LOGIN_URL - The URL used if the user has forgotten their login information.
Disabled User VerificationThe email message sent out when a previously disabled user account is verified and reactivated.DATE_INPUT - The date on which the user was re-verified.
SITE_NAME - The name of the xnat site.
SITE_LINK - The link to the xnat site.
USER_USERNAME - The username of the re-verified user.
USER_FIRSTNAME - The first name of the re-verified user.
USER_LASTNAME - The last name of the re-verified user.
ENABLED_MESSAGE - A message indicating whether the user account is now enabled, includes a login link.


User Account Management Notifications

Email Trigger EventDescriptionAvailable Shortcodes
Forgot UsernameThe email message sent to a user's email address when they have lost their username.USER_USERNAME - The requested username
SITE_LINK - The link to the xnat site
Forgot PasswordThe email message sent to a user's email address when they have forgotten their password. This email will be sent with a password reset link to allow the user to input a new password.USER_FIRSTNAME - The first name of the user receiving the password reset.
USER_LASTNAME - The last name of the user receiving the password reset.
RESET_LINK - The link used to reset the password.
Email Change RequestThe email message sent to alert a user that someone has requested to change the email for the account which is currently associated with the recipient email address. USER_USERNAME - The username of the account.
NEW_EMAIL - The new email for the account.
ADMIN_MAIL_LINK - The link to email the site admin
Verify Email Change RequestThe email message sent out to verify a change of email address when one has been requested by the user within the XNAT system.

USER_USERNAME - The username of the account.
CHANGE_EMAIL_LINK - The link to change the email address.

Email Address Change SuccessfulText of the email message sent to both the original and new email address associated with a user account to alert both that the email address for that account has been successfully changed. NEW_EMAIL - The new email address for the account


Project Access Request Notifications

Email Trigger EventDescriptionAvailable Shortcodes

Project Access Request

The email message sent out to project owners when a user requests access to their project.PROJECT_NAME - The name of the project the user is attempting to access.
SITE_NAME - The name of the xnat site.
RQ_ACCESS_LEVEL - The level of access (member, collaborator, etc.) that is being requested.
LIST_PERMISSIONS - The permissions associated with the level requested.
USER_USERNAME - The username of the requesting user.
USER_EMAIL - The email of the requesting user.
USER_FIRSTNAME - The first name of the requesting user.
USER_LASTNAME - The last name of the requesting user.
RQA_COMMENTS - The comments that the user attached to their request.
ACCESS_URL - The URL used to respond to the access request.
SITE_LINK - The link to the xnat site.
ADMIN_MAIL_LINK - The link to email the site admin.
Project Access ApprovalThe email message sent out to a user when their request for project access has been accepted.PROJECT_NAME - The name of the project.
RQ_ACCESS_LEVEL - The level of access (member, collaborator, etc.) that is being granted.
ACCESS_URL - The URL used to access the project.
SITE_LINK - The link to the xnat site.
SITE_NAME - The name of the xnat site.
ADMIN_MAIL_LINK - The link to email the site admin.
Project Access DenialThe email message sent out to a user when their request for project access has been denied.

PROJECT_NAME - The name of the project for which access was requested.
USER_EMAIL - The email of the project manager.
SITE_LINK - The link to the xnat site.
SITE_NAME - The name of the xnat site.
ADMIN_MAIL_LINK - The link to email the site admin.

Project Access InvitationThe email message sent out to a user when they have been invited to join a project.PROJECT_NAME - The name of the project.
USER_FIRSTNAME - The first name of the user extending the invitation.
USER_LASTNAME - The last name of the user extending the invitation.
ACCEPT_URL - The URL to be used to accept the invitation to join the project.
SITE_LINK - The link to the xnat site.
SITE_NAME - The name of the xnat site.
ADMIN_MAIL_LINK - The link to email the site admin.


Data Transfer Notifications

Email Trigger EventDescriptionAvailable Shortcodes
Batch Transfer CompleteThe email message sent to the initiating user when a batch data transfer to the archive has been successfully completed.

USER_FIRSTNAME - The first name of the contacted user.
USER_LASTNAME - The last name of the contacted user.
PROCESS_NAME - The name of the process that has been completed.
NUMBER_MESSAGES - Number of messages transferred.
MESSAGES_LIST - List of transferred messages.
ERRORS_LIST - List of any errors that occurred during the transfer.
SITE_LINK - The link to the xnat site.
SITE_NAME - The name of the xnat site.
ADMIN_MAIL_LINK - The link to email the site admin.

Upload By Reference SuccessThe email message sent when a user has uploaded a file or files to the system by reference successfully. USER_USERNAME - The user who requested the upload.
DUPLICATES_LIST - The list of the duplicate files (if applicable).
Upload By Reference FailureThe email sent when a user's upload by reference attempt has failed. USER_USERNAME - The user who requested the upload.


Pipeline Processing Notifications

Email Trigger EventDescriptionAvailable Shortcodes
Pipeline SuccessThe email message sent out when an experiment pipeline has completed successfully without errors.USER_FIRSTNAME - The first name of the contacted user.
USER_LASTNAME - The last name of the contacted user.
PIPELINE_NAME - The name of the pipeline.
EXPERIMENT_NAME - The name of the experiment on which the pipeline ran.
SUCCESS_URL - Link for details on the pipeline run.
SITE_NAME - The name of the xnat site.
Pipeline FailureThe email message sent out when an experiment pipeline has failed before completion due to an error.PIPELINE_NAME - The name of the pipeline.
PROJECT_NAME - The name of the project in which the pipeline failed.
EXPERIMENT_NAME - The name of the experiment on which the pipeline failed.
PIPELINE_STEP - The step at which the pipeline failed.
SITE_NAME - The name of the xnat site.
CONTACT_EMAIL - The email at which a user can contact the site team for help.
ATTACHMENTS_STATEMENT - Other information about the pipeline failures if applicable.
PIPELINE_PARAMETERS - The parameters of the specific pipeline run.
STDOUT - The stdout of the pipeline error.
STDERR - The stderr of the pipeline error.
Autorun Pipeline SuccessThe email message sent out to the user when the autorun pipeline field is enabled in Xnat and the automatically run pipeline completes successfully.

USER_FIRSTNAME - The first name of the contacted user.
USER_LASTNAME - The last name of the contacted user.
SITE_NAME - The name of the xnat site.
PROJECT_NAME - The name of the project in which the pipeline ran.
SUBJECT_NAME - The name of the subject on which the pipeline ran.
EXPERIMENT_NAME - The name of the experiment on which the pipeline ran.
SUCCESS_URL - Link for details on the pipeline run.


Error Handling Notifications

Email Trigger EventDescriptionAvailable Shortcodes
Error MessageThe email message sent out to site administrators when an error has occurred within the system. SITE_NAME - The name of the xnat site.
USER_LOGIN - The login information for the user associated with the error.
USER_FIRSTNAME - The first name of the associated with the error.
USER_LASTNAME - The last name of the associated with the error.
ERROR_TIME - The time of the error.
ERROR_MESSAGE - The error message.
Unauthorized Data AttemptThe email message sent when one of a several types of unauthorized data or login access attempts are recognized by the system.

TYPE - The type of data attempt.
USER_DETAILS - The details on the user who attempted to access the data (if known and applicable).

System Path ErrorThe email message sent to the site admin when Xnat is unable to find the file system (e.g. archive, build, prearchive directories).

ERRORS_LIST - The list of the errors that have been found.


"Data Of Interest" Notifications

Email Trigger EventDescriptionAvailable Shortcodes
Data AlertThe email message sent from one user to another to alert each other about possibly useful data within their XNAT. USER_FIRSTNAME - The first name of the user who initiates the message.
USER_LASTNAME- The last name of the user who initiates the message.
SITE_NAME - The name of the xnat site.
REQUEST_LINK - The link the user can follow to view the data.
SENDER_MESSAGE - The message sent by the user alongside the data alert.
SITE_LINK - The link to the xnat site.
TIME_SENT - The time at which the information was sent.
HELP_CONTACT - Email address at which help can be reached


Full Shortcode Reference

System emails are configured using a set of shortcodes which will allow for the emails to be customized both to your Xnat site as well as to the recipient of the email itself. These shortcuts are listed below and the shortcuts related to a specific email message can be seen above.

ShortcodeReplacement Value
SITE_NAMEYour XNAT's site name, which is set in Administer > Site Administration > Site Setup.
SITE_URLA link to your Xnat site, the url of which is set in Administer > Site Administration > Site Setup.
USER_USERNAMEThe username or login of the registered user, which is unique and set by the user.
USER_FIRSTNAMEThe first name provided by the registered user. This can be edited by the user in their profile, or by the site administrator in Administer > Users.
USER_LASTNAMEThe last name provided by the registered user. This can be edited by the user in their profile, or by the site administrator in Administer > Users.
USER_LOGINThe login information for the user.
USER_EMAILThe email provided by the registered user. This can be edited by the user in their profile, or by the site administrator in Administer > Users.
USER_PHONEThe phone number provided by the registered user. This can be edited by the user in their profile, or by the site administrator in Administer > Users.
LAB_NAMEThe name of the lab where the user is registered.
ADMIN_MAIL_LINKThe primary XNAT administration contact email, which is set in Site Administration > Site Setup. This email will be sent to the user as a link so they may quickly compose a help message.
HELP_EMAILThe Help Contact Info email specified above.
DATE_INPUTThe date when the action occurred.
TIMEThe time at which the action occurred.
PROJECT_NAMEThe name of the project referred to in the email.
STDOUTThe stdout of the related error.
STDERRThe stderr for the error.
ERRORS_LISTA list of the encountered errors.
RESET_LINKUsed in the Forgot Password email only, this link will be provided to allow the user to reset their password.
VERIFY_URLUsed in the New User Verification email only, this link will be used to verify the new user within the Xnat system.
FORGOT_LOGIN_URLUsed in the New User Verification email only, this link is used if the user has forgotten their login information.
RQ_ACCESS_LEVELUsed in project access emails only, this is the level of access being requested or given to the user within the project.
RQA_COMMENTSUsed in project access emails only, these are comments provided by the user to justify access to a requested project role.
LIST_PERMISSIONSUsed in project access emails only, this is a list of the permissions the user will be given based on the level of access defined above.
ACCESS_URLUsed in project access emails only, this is the link used to respond to the project access request.
ACCEPT_URLUsed in Project Access Invitation email only, this is the link sent to allow the user to accept the invitation to work on the project.
LOGIN_URLUsed in Disabled User Verification only, this is a link to the login page for the Xnat site.
ERROR_TIMEUsed in Error Message email only - the time at which the error occurred.
ERROR_MESSAGEUsed in Error Message email only, this is the message related to the error.
PROJECT_ACCESS_REQUESTSUsed in new user emails only, these are the projects which a new user has open access requests for when they join.
REVIEW_LINKUsed in new user emails only, the link used to accept or deny the request to join the Xnat.
USER_COMMENTSUsed in new user emails only, these are the comments that the system administrator has provided to the new user.
PIPELINE_NAMEUsed in Pipeline emails only - the name of the pertinent pipeline.
EXPERIMENT_NAMEUsed in pipeline emails only - the name of the experiment on which the pipeline is being run.
SUCCESS_URLUsed in pipeline emails only - the link where the user can navigate to see details of the pipeline run.
PIPELINE_STEPUsed in the Pipeline Failure email only - the step in the pipeline at which the run failed.
CONTACT_EMAIL
Used in Pipeline Failure email only - the email to which the user can direct their help questions to.
ATTACHMENTS_STATEMENTUsed in Pipeline Failure email only - other information about the pipeline failures, if applicable.
PROCESS_NAMEUsed for Batch Transfer email only - the name of the process that has been completed.
NUMBER_MESSAGESUsed for Batch Transfer email only - the number of messages that were transferred.
MESSAGES_LISTUsed for Batch Transfer email only - the list of transferred messages.
TYPEUsed for Unauthorized Data Attempt email only - the type of data attempt.
USER_DETAILSUsed for Unauthorized Data Attempt email only - the details of the user who attempted to access the data.
NEW_EMAILUsed for email change messages only - the new email to be associated with the user account.
CHANGE_EMAIL_LINKUsed for Email Change Verification only - the link used to verify the user account's change of email address.
DUPLICATES_LISTUsed only in Upload By Reference Success email - a list of the duplicate files within the upload.
REQUEST_LINKUsed only in Data Alert message - the link the user can follow to view the data.
SENDER_MESSAGEUsed only in Data Alert message - the message sent by the user alongside the data alert.
TIME_SENTUsed only in Data Alert message - the time at which the message was sent.


Sending Custom Notifications to Users via Email

See: Sending Emails to Registered Users


Creating Site-wide Alerts

See: Admin UI - Site Wide Alerts


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.