User-Related Events - Mura Docs v7.0

User-Related Events

The methods listed below are specifically related to Mura users.

User Editing Events

Event Rendered Description
onBeforeUserCreate   Announced before a Mura User is created.
onBeforeUserUpdate   Announced before a Mura User is updated.
onBeforeUserSave   Announced before a Mura User is saved.
onBeforeUserDelete   Announced before a Mura User is deleted.
onBeforeUser{Subtype}Create   Announced before a Mura User with a subtype is created.
onBeforeUser{Subtype}Update   Announced before a Mura User with a subtype is updated.
onBeforeUser{Subtype}Save   Announced before a Mura User with a subtype is saved.
onBeforeUser{Subtype}Delete   Announced before a Mura User with a subtype is deleted.
onUserCreate   Announced before a Mura User is created.
onUserUpdate   Announced before a Mura User is updated.
onUserSave   Announced before a Mura User is saved.
onUserDelete   Announced before a Mura User is deleted.
onAfterUserCreate   Announced after a Mura User has been created.
onAfterUserUpdate   Announced after a Mura User has been updated.
onAfterUserSave   Announced after a Mura User has been saved.
onAfterUserDelete   Announced after a Mura User has been deleted.
onAfterUser{Subtype}Create   Announced after a Mura User with a subtype has been created.
onAfterUser{Subtype}Update   Announced after a Mura User with a subtype has been updated.
onAfterUser{Subtype}Save   Announced after a Mura User with a subtype has been saved.
onAfterUser{Subtype}Delete   Announced after a Mura User with a subtype has been deleted.

Group Editing Events

Event Rendered Description
onBeforeGroupCreate   Announced before a Mura Group is created.
onBeforeGroupUpdate   Announced before a Mura Group is updated.
onBeforeGroupSave   Announced before a Mura Group is saved.
onBeforeGroupDelete   Announced before a Mura Group is deleted.
onBeforeGroup{Subtype}Create   Announced before a Mura Group with a subtype is created.
onBeforeGroup{Subtype}Update   Announced before a Mura Group with a subtype is updated.
onBeforeGroup{Subtype}Save   Announced before a Mura Group with a subtype is saved.
onBeforeGroup{Subtype}Delete   Announced before a Mura Group with a subtype is deleted.
onGroupCreate   Announced before a Mura Group is created.
onGroupUpdate   Announced before a Mura Group is updated.
onGroupSave   Announced before a Mura Group is saved.
onGroupDelete   Announced before a Mura Group is deleted.
onGroup{Subtype}Create   Announced before a Mura Group with a subtype is created.
onGroup{Subtype}Update   Announced before a Mura Group with a subtype is updated.
onGroup{Subtype}Save   Announced before a Mura Group with a subtype is saved.
onGroup{Subtype}Delete   Announced before a Mura Group with a subtype is deleted.
onAfterGroup{Subtype}Create   Announced after a Mura Group with a subtype is created.
onAfterGroup{Subtype}Update   Announced after a Mura Group with a subtype is updated.
onAfterGroup{Subtype}Save   Announced after a Mura Group with a subtype is saved.
onAfterGroup{Subtype}Delete   Announced after a Mura Group with a subtype is deleted.

Group & User Rendering Events

Event Rendered Description
onGroupEdit X Renders a tab when editing a group
onUserEdit X Renders a tab when editing a user

Login Related Events

Event Rendered Description
onSiteLogin   Announced when a user is logging in, if session.siteid exists.
onSiteLoginSuccess   Announced when a user has successfully logged in,  if session.siteid exists.
onSiteLoginFailure   Announced when a user has failed to log in due to incorrect credentials,  if session.siteid exists.
onSiteLoginBlocked   Announced when a user has unsuccessfully attempted to log in too many times,  if session.siteid exists.
onSiteLogout   Announced when a user has logged out,  if session.siteid exists.
onBeforeSiteLogout   Announced before a user is logged out,  if session.siteid exists.
onAfterSiteLogout   Announced after a user has logged out,  if session.siteid exists.
onGlobalLogin   Announced when a user is logging in, if session.siteid does not exist.
onGlobalLoginSuccess   Announced when a user has successfully logged in, if session.siteid does not exist.
onGlobalLoginFailure   Announced when a user has failed to log in, if session.siteid does not exist.
onGlobalLoginBlocked   Announced when a user has unsuccessfully attempted to log in too many times,  if session.siteid does not exist.
onGlobalLogout   Announced when a user has logged, if session.siteid does not exist.
onBeforeGlobalLogout   Announced before a user is logged out, if session.siteid does not exist.
onAfterGlobalLogout   Announced after a user has logged out, if session.siteid does not exist.
onSiteEditProfileRender X Announced when a user is about to be presented with the "Edit Profile" form. If returning a string, the result will be displayed to the end-user in lieu of the default form.
onSiteLoginPromptRender X Announced when a user is about to be presented with the "Login" form. If returning a string, the result will be displayed to the end-user in lieu of the default form.
onContentDenialRender X Announced when a user is about to be presented with the "Restricted" screen. If returning a string, the result will be displayed to the end-user in lieu of the default screen.
onSiteMFAChallengeRender X If Multi-Factor Authentication (MFA) is enabled, this event is announced when rendering the MFA section of the site's login screen.