Table of Contents

Interface IUserModel

Namespace
ToSic.Sxc.Cms.Users
Assembly
ToSic.Sxc.dll

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

DateTime

Email

User E-Mail Address, aka PreferredEmail

string Email { get; }

Property Value

string

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

Guid

Id

User Id as int. Works in DNN and Oqtane

int Id { get; }

Property Value

int

IsAnonymous

True if the user is anonymous / not logged in.

bool IsAnonymous { get; }

Property Value

bool

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

bool

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

bool

IsSiteAdmin

True if the user is admin - allowing full content-management and user-management.

bool IsSiteAdmin { get; }

Property Value

bool

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

bool

IsSystemAdmin

True if the user has super-user rights. This kind of user can do everything, incl. create apps.

bool IsSystemAdmin { get; }

Property Value

bool

Modified

When the user was last modified.

DateTime Modified { get; }

Property Value

DateTime

Name

Nice name aka DisplayName.

string Name { get; }

Property Value

string

NameId

string NameId { get; }

Property Value

string

Roles

Roles of the user.

IEnumerable<IUserRoleModel> Roles { get; }

Property Value

IEnumerable<IUserRoleModel>

Username

UserName used for login.

string Username { get; }

Property Value

string