User events

Sitefinity CMS users are users who can conduct content management and/or administrative tasks within a given website project. When the website administrator creates, deletes, or modifies a user, a variety of user events are fired. You can subscribe to any of the user events listed below.

For more information about managing and administering users, see Overview: Users.

UserEventBase

This is the base class for events that notifies for changes in the Sitefinity CMS users. Subscribe using the following code:

In the event handler, you can access the following information:

  • ID of the user
  • Username
  • Name of the membership provider
  • Approval status of the user
  • Email of the user
  • Password of the user
  • Password format

UserCreating

This event fires when a Sitefinity CMS user is being created and is pending approval. Use the following code to subscribe:

In the event handler, you can access the user which is pending for creation.

UserCreated

This event fires when a Sitefinity CMS user is already created. Use the following code to subscribe:

UserUpdating

This event fires when a Sitefinity CMS user is being modified. Use the following code to subscribe:

In the event handler, you can access the following information:

  • A flag which indicates whether the approval status of a user is changed.
  • A flag which indicates whether the password of a user is being changed.
  • The user which is pending for an update.

UserUpdated

This event fires when a Sitefinity CMS user is already modified. Use the following code to subscribe:

In the event handler, you can access the following information:

  • A flag which indicates whether the approval status of a user is changed.
  • A flag which indicates whether the password of a user is changed.

UserDeleting

This event fires when a Sitefinity CMS user is being deleted. Use the following code to subscribe:

In the event handler, you can access the user which is pending for delete.

UserDeleted

This event fires when a Sitefinity CMS user is already deleted. Use the following code to subscribe:

Your event handler should look like this.

PasswordRecoveryRequested

This event fires when a password recovery link was sent to a Sitefinity CMS user email. Use the following code to subscribe:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Profile events