Class BackOfficeIdentityUser
The identity user used for the back office
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class BackOfficeIdentityUser : UmbracoIdentityUser
Constructors
BackOfficeIdentityUser(GlobalSettings, Int32, IEnumerable<IReadOnlyUserGroup>)
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[] |
|
Declaration
public int[] CalculatedMediaStartNodeIds { get; set; }
Property Value
Type |
Description |
System.Int32[] |
|
Culture
Declaration
public string Culture { get; set; }
Property Value
Type |
Description |
System.String |
|
InviteDateUtc
Declaration
public DateTime? InviteDateUtc { get; set; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
Key
Declaration
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[] |
|
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
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 |
|