Search Results for

    Show / Hide Table of Contents
    View Source

    Class BackOfficeIdentityUser

    The identity user used for the back office

    Inheritance
    System.Object
    UmbracoIdentityUser
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class BackOfficeIdentityUser : UmbracoIdentityUser, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    BackOfficeIdentityUser(GlobalSettings, Int32, 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
    System.Int32 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
    System.String[]
    View Source

    CalculatedContentStartNodeIds

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

    CalculatedMediaStartNodeIds

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

    Culture

    Gets or sets the culture

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

    InviteDateUtc

    Gets or sets invite date

    Declaration
    public DateTime? InviteDateUtc { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    Key

    Declaration
    public Guid Key { get; }
    Property Value
    Type Description
    Guid
    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
    System.Int32[]
    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
    System.Int32[]

    Methods

    View Source

    CreateNew(GlobalSettings, String, String, String, String)

    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)
    Parameters
    Type Name Description
    GlobalSettings globalSettings
    System.String username
    System.String email

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

    System.String culture
    System.String name
    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
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BackOfficeIdentityUser(GlobalSettings, Int32, IEnumerable<IReadOnlyUserGroup>)
    • Properties
      • AllowedSections
      • CalculatedContentStartNodeIds
      • CalculatedMediaStartNodeIds
      • Culture
      • InviteDateUtc
      • Key
      • StartContentIds
      • StartMediaIds
    • Methods
      • CreateNew(GlobalSettings, String, String, String, String)
      • SetGroups(IReadOnlyCollection<IReadOnlyUserGroup>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX