Search Results for

    Show / Hide Table of Contents
    View Source

    Class BackOfficeIdentityUser

    The identity user used for the back office

    Inheritance
    object
    IdentityUser<string>
    IdentityUser
    UmbracoIdentityUser
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class BackOfficeIdentityUser : UmbracoIdentityUser, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    BackOfficeIdentityUser(GlobalSettings, int, IEnumerable<IReadOnlyUserGroup>)

    Initializes a new instance of the BackOfficeIdentityUser class.

    Declaration
    public BackOfficeIdentityUser(GlobalSettings globalSettings, int userId, IEnumerable<IReadOnlyUserGroup> groups)
    Parameters
    Type Name Description
    GlobalSettings globalSettings
    int userId
    IEnumerable<IReadOnlyUserGroup> groups

    Properties

    View Source

    AllowedSections

    Gets a readonly list of the user's allowed sections which are based on it's user groups

    Declaration
    public string[] AllowedSections { get; }
    Property Value
    Type Description
    string[]
    View Source

    CalculatedContentStartNodeIds

    Declaration
    public int[]? CalculatedContentStartNodeIds { get; set; }
    Property Value
    Type Description
    int[]
    View Source

    CalculatedMediaStartNodeIds

    Declaration
    public int[]? CalculatedMediaStartNodeIds { get; set; }
    Property Value
    Type Description
    int[]
    View Source

    Culture

    Gets or sets the culture

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

    InviteDate

    Gets or sets invite date

    Declaration
    public DateTime? InviteDate { get; set; }
    Property Value
    Type Description
    DateTime?
    View Source

    Key

    Declaration
    public Guid Key { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    Kind

    Declaration
    public UserKind Kind { get; set; }
    Property Value
    Type Description
    UserKind
    View Source

    StartContentIds

    Gets or sets content start nodes assigned to the User (not ones assigned to the user's groups)

    Declaration
    public int[] StartContentIds { get; set; }
    Property Value
    Type Description
    int[]
    View Source

    StartMediaIds

    Gets or sets media start nodes assigned to the User (not ones assigned to the user's groups)

    Declaration
    public int[] StartMediaIds { get; set; }
    Property Value
    Type Description
    int[]

    Methods

    View Source

    CreateNew(GlobalSettings, string?, string, string, string?, Guid?, UserKind)

    Used to construct a new instance without an identity

    Declaration
    public static BackOfficeIdentityUser CreateNew(GlobalSettings globalSettings, string? username, string email, string culture, string? name = null, Guid? id = null, UserKind kind = UserKind.Default)
    Parameters
    Type Name Description
    GlobalSettings globalSettings
    string username
    string email

    This is allowed to be null (but would need to be filled in if trying to persist this instance)

    string culture
    string name
    Guid? id
    UserKind kind
    Returns
    Type Description
    BackOfficeIdentityUser
    View Source

    SetGroups(IReadOnlyCollection<IReadOnlyUserGroup>)

    Gets or sets the user groups

    Declaration
    public void SetGroups(IReadOnlyCollection<IReadOnlyUserGroup> value)
    Parameters
    Type Name Description
    IReadOnlyCollection<IReadOnlyUserGroup> value
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX