Search Results for

    Show / Hide Table of Contents

    Class BackOfficeIdentityUser

    The identity user used for the back office

    Inheritance
    System.Object
    UmbracoIdentityUser
    Namespace: Umbraco.Cms.Core.Security
    Assembly: cs.temp.dll.dll
    Syntax
    public class BackOfficeIdentityUser : UmbracoIdentityUser

    Constructors

    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
    System.Collections.Generic.IEnumerable<IReadOnlyUserGroup> groups

    Properties

    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[]

    CalculatedContentStartNodeIds

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

    CalculatedMediaStartNodeIds

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

    Culture

    Gets or sets the culture

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

    InviteDateUtc

    Gets or sets invite date

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

    Key

    Declaration
    public Guid Key { get; }
    Property Value
    Type Description
    System.Guid

    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[]

    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

    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

    SetGroups(IReadOnlyCollection<IReadOnlyUserGroup>)

    Gets or sets the user groups

    Declaration
    public void SetGroups(IReadOnlyCollection<IReadOnlyUserGroup> value)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyCollection<IReadOnlyUserGroup> value
    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