View Source
  Class BackOfficeIdentityUser
  
  The identity user used for the back office
    Inheritance
      System.Object
      
      
   
  
  Assembly: Umbraco.Infrastructure.dll
  Syntax
  
    public class BackOfficeIdentityUser : UmbracoIdentityUser, IRememberBeingDirty, ICanBeDirty
   
  Constructors
  
  
    View Source
  
  BackOfficeIdentityUser(GlobalSettings, Int32, IEnumerable<IReadOnlyUserGroup>)
  
  
  Declaration
  
    public BackOfficeIdentityUser(GlobalSettings globalSettings, int userId, IEnumerable<IReadOnlyUserGroup> groups)
   
  Parameters
  
  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
  
  
  
  
  Declaration
  
    public int[] CalculatedMediaStartNodeIds { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Int32[] |  | 
    
  
  
    View Source
  
  Culture
  
  
  Declaration
  
    public string Culture { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.String |  | 
    
  
  
    View Source
  
  InviteDateUtc
  
  
  Declaration
  
    public DateTime? InviteDateUtc { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Nullable<DateTime> |  | 
    
  
  
    View Source
  
  Key
  
  
  Declaration
  
    public Guid Key { get; set; }
   
  Property Value
  
  
    View Source
  
  Kind
  
  
  Declaration
  
    public UserKind Kind { get; set; }
   
  Property Value
  
  
    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
  
  
  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, Nullable<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 |  | 
      
        | 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 |  | 
      
        | System.Nullable<Guid> | id |  | 
      
        | UserKind | kind |  | 
    
  
  Returns
  
  
    View Source
  
  SetGroups(IReadOnlyCollection<IReadOnlyUserGroup>)
  Gets or sets the user groups
Declaration
  
    public void SetGroups(IReadOnlyCollection<IReadOnlyUserGroup> value)
   
  Parameters