Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserNotification

    Abstract base class for user-related notifications such as login, logout, password changes, and locking.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class UserNotification : INotification
    Remarks

    This class provides common properties for tracking the user action, the affected user, and the performing user for audit and security logging purposes.

    Constructors

    View Source

    UserNotification(string, string?, string)

    Initializes a new instance of the UserNotification class.

    Declaration
    protected UserNotification(string ipAddress, string? affectedUserId, string performingUserId)
    Parameters
    Type Name Description
    string ipAddress

    The source IP address of the user performing the action.

    string affectedUserId

    The ID of the user affected by this action.

    string performingUserId

    The ID of the user performing this action.

    Properties

    View Source

    AffectedUserId

    Gets the ID of the user affected by this action.

    Declaration
    public string? AffectedUserId { get; }
    Property Value
    Type Description
    string
    View Source

    DateTimeUtc

    Gets the date and time in UTC when this notification was created.

    Declaration
    public DateTime DateTimeUtc { get; }
    Property Value
    Type Description
    DateTime
    View Source

    IpAddress

    Gets the source IP address of the user performing the action.

    Declaration
    public string IpAddress { get; }
    Property Value
    Type Description
    string
    View Source

    PerformingUserId

    Gets the ID of the user performing this action.

    Declaration
    public string PerformingUserId { get; }
    Property Value
    Type Description
    string
    Remarks

    If a user is performing an action on a different user, this will differ from AffectedUserId.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX