Interface IUserModel
BETA User Model for data returned by the ToSic.Sxc.Cms.Users DataSource or other sources.
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IUserModel : ICanWrapData
Remarks
For detailed documentation, check the docs of the underlying objects:
History
- Introduced in v19.01
Properties
Created
When the user was first created.
DateTime Created { get; }
Property Value
User E-Mail Address, aka PreferredEmail
string Email { get; }
Property Value
Guid
An optional user GUID.
On systems which don't give the user a unique guid, it will be Guid.Empty
.
Guid Guid { get; }
Property Value
Id
User Id as int. Works in DNN and Oqtane
int Id { get; }
Property Value
IsAnonymous
True if the user is anonymous / not logged in.
bool IsAnonymous { get; }
Property Value
IsContentAdmin
True if the user is a content admin / editor. If the user only has this role, then he/she can only edit pages and content, but not users.
bool IsContentAdmin { get; }
Property Value
IsContentEditor
Determines if the user is a content editor. In DNN 10, ContentEditors cannot publish pages (unless they are also ContentAdmins).
bool IsContentEditor { get; }
Property Value
IsSiteAdmin
True if the user is admin - allowing full content-management and user-management.
bool IsSiteAdmin { get; }
Property Value
IsSiteDeveloper
True if a user is in the SxcDesigners group. Such a person can actually do a lot more, like access the advanced toolbars.
bool IsSiteDeveloper { get; }
Property Value
IsSystemAdmin
True if the user has super-user rights. This kind of user can do everything, incl. create apps.
bool IsSystemAdmin { get; }
Property Value
Modified
When the user was last modified.
DateTime Modified { get; }
Property Value
Name
Nice name aka DisplayName.
string Name { get; }
Property Value
NameId
string NameId { get; }
Property Value
Roles
Roles of the user.
IEnumerable<IUserRoleModel> Roles { get; }
Property Value
Username
UserName used for login.
string Username { get; }