Search Results for

    Show / Hide Table of Contents

    Class UserInfo

    The light user info class that holds the relevant information for the current logged in user, or user that processes/tasks are running under

    Inheritance
    object
    UserInfo
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Context
    Assembly: LemonEdge.API.dll
    Syntax
    [DataContract]
    public class UserInfo

    Constructors

    UserInfo()

    Declaration
    public UserInfo()

    Properties

    AccountID

    LemonEdge is a multi-tenanted system, and thus you can have several different accounts all residing in the same database

    The default root account is 1

    This property holds the account the item belongs to. It can not be modified by a user, it is maintained internally by the system

    Declaration
    public long AccountID { get; set; }
    Property Value
    Type Description
    long

    DefaultTeamID

    Holds the team (and thus all permissions and security) that the user is running under. Next time they login they will default to this team unless they switch to another they are a member of.

    Declaration
    public Guid DefaultTeamID { get; set; }
    Property Value
    Type Description
    Guid

    EmailLogin

    The globally unique login for this user.

    Making it globally unique ensures users log into the correct account (if the system is multi-tenanted) automatically

    Declaration
    public string EmailLogin { get; set; }
    Property Value
    Type Description
    string

    Expiration

    Holds the Session Expiry for this user

    Declaration
    public DateTimeOffset? Expiration { get; set; }
    Property Value
    Type Description
    DateTimeOffset?

    ID

    Declaration
    [Key]
    public Guid ID { get; set; }
    Property Value
    Type Description
    Guid

    LastLoggedInRoleID

    Holds the last role the user was logged into. This is automatically the role they will be logged into the next time they start the application.

    Declaration
    public Guid? LastLoggedInRoleID { get; set; }
    Property Value
    Type Description
    Guid?

    LockInCanvas

    Indicates whether the user is locked into the RunInCanvasID or not. If they are, they can not switch out of it back to the main system, or to any other canvas. They can only run the system in the isolated canvas they are locked into.

    This is useful for training, onboarding and other similar scenarios requiring workflow/manager approval of the work they are doing

    Declaration
    public bool LockInCanvas { get; set; }
    Property Value
    Type Description
    bool

    LockInSafe

    Indicates whether the user is locked into the RunInSafeID or not. If they are, they can not switch out of it back to the main system, or to any other safe. They can only run the system in the safe they are locked into.

    Declaration
    public bool LockInSafe { get; set; }
    Property Value
    Type Description
    bool

    LogQueryStats

    Indicates query stats should be logged (Default) by this user. Can be turned off for migration users, or large import users for performance of complex calculations.

    Declaration
    public bool LogQueryStats { get; set; }
    Property Value
    Type Description
    bool

    Name

    The actual name of the user

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    PromoteOnlyWithTeamID

    Indicates the team permissions to use only when promoting items from a canvas - not necessarily a team the user has access to otherwise

    Declaration
    public Guid? PromoteOnlyWithTeamID { get; set; }
    Property Value
    Type Description
    Guid?

    RunInCanvasID

    Holds the ID of any canvas the user is currently running in. This is the canvas they will log back into automatically next time they run the application.

    If this holds null they are running in the *live* main system. Otherwise they are running in a completely isolated copy of the system under a canvas

    Declaration
    public Guid? RunInCanvasID { get; set; }
    Property Value
    Type Description
    Guid?

    RunInSafeID

    Holds the ID of any safe the user is currently running in. This is the safe they will log back into automatically next time they run the application.

    If this holds null they are running in the *live* main system. Otherwise they are running in a safe

    Declaration
    public Guid? RunInSafeID { get; set; }
    Property Value
    Type Description
    Guid?

    Suspended

    Indicates if the user has been suspended.

    A suspended user can no longer login to the system. You can not delete users (for audit history and other reasons), so they can either be re-purposed or suspended.

    Declaration
    public bool Suspended { get; set; }
    Property Value
    Type Description
    bool

    Theme

    Holds the default theme for the user's client applications. Some applications (such as the admin command console) do not adhere to themes, others do so where available, and the windows desktop application is fully theme compliant.

    Declaration
    public Theme Theme { get; set; }
    Property Value
    Type Description
    Theme

    Token

    Holds the Authentication Token for this user

    Declaration
    public string Token { get; set; }
    Property Value
    Type Description
    string

    WindowsLoginOnly

    Indicates the user can only login using windows active directory, they can not use a user name and password to login.

    By ensuring access only through the correct windows logins, you can restrict password policies and other security to be completely managed by your IT departments as required

    Declaration
    public bool WindowsLoginOnly { get; set; }
    Property Value
    Type Description
    bool

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.