Interface IUser
Defines the interface for a User
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IUser : IMembershipUser, IAggregateRoot, IDeletableEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
AllowedSections
Declaration
IEnumerable<string> AllowedSections { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Avatar
Will hold the media file system relative path of the users custom avatar if they uploaded one
Declaration
string Avatar { get; set; }
Property Value
Type |
Description |
System.String |
|
EmailConfirmedDate
Declaration
DateTime? EmailConfirmedDate { get; set; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
Groups
Gets the groups that user is part of
Declaration
IEnumerable<IReadOnlyUserGroup> Groups { get; }
Property Value
InvitedDate
Declaration
DateTime? InvitedDate { get; set; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
Language
Declaration
string Language { get; set; }
Property Value
Type |
Description |
System.String |
|
Name
Declaration
string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
ProfileData
Exposes the basic profile data
Declaration
IProfile ProfileData { get; }
Property Value
SecurityStamp
The security stamp used by ASP.Net identity
Declaration
string SecurityStamp { get; set; }
Property Value
Type |
Description |
System.String |
|
SessionTimeout
Declaration
int SessionTimeout { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
StartContentId
Declaration
[Obsolete("This should not be used it exists for legacy reasons only, use user groups instead, it will be removed in future versions")]
int StartContentId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
StartContentIds
Declaration
int[] StartContentIds { get; set; }
Property Value
Type |
Description |
System.Int32[] |
|
Declaration
[Obsolete("This should not be used it exists for legacy reasons only, use user groups instead, it will be removed in future versions")]
int StartMediaId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
int[] StartMediaIds { get; set; }
Property Value
Type |
Description |
System.Int32[] |
|
TourData
A Json blob stored for recording tour data for a user
Declaration
string TourData { get; set; }
Property Value
Type |
Description |
System.String |
|
UserState
Declaration
UserState UserState { get; }
Property Value
UserType
Declaration
[Obsolete("This should not be used it exists for legacy reasons only, use user groups instead, it will be removed in future versions")]
IUserType UserType { get; set; }
Property Value
Methods
AddAllowedSection(String)
Declaration
[Obsolete("This should not be used it exists for legacy reasons only, use user groups instead, it will be removed in future versions")]
void AddAllowedSection(string sectionAlias)
Parameters
Type |
Name |
Description |
System.String |
sectionAlias |
|
AddGroup(IReadOnlyUserGroup)
Declaration
void AddGroup(IReadOnlyUserGroup group)
Parameters
ClearGroups()
Declaration
RemoveAllowedSection(String)
Declaration
[Obsolete("This should not be used it exists for legacy reasons only, use user groups instead, it will be removed in future versions")]
void RemoveAllowedSection(string sectionAlias)
Parameters
Type |
Name |
Description |
System.String |
sectionAlias |
|
RemoveGroup(String)
Declaration
void RemoveGroup(string group)
Parameters
Type |
Name |
Description |
System.String |
group |
|