Skip to main content
SuperOffice User, with login credentials and an associated person.

Constructors

NSUser()

Initializes a new instance of the NSUser class.

Methods

GetAssociateId()

Returns: CRMScript.Global.Integer - Primary key. Example:

GetCredentials()

Returns: CRMScript.NetServer.NSCredential[] - List of credentials registered for this user. i.e. valid authentication methods. Example:

GetCustomFields()

Gets the user-defined + extra fields on a User as a map.
Returns: CRMScript.Native.Map Example:

GetDeleted()

Returns: CRMScript.Global.Bool - If true, the user is retired and should have no rights, not appear in lists, etc. Example:

GetEjUserId()

Returns: CRMScript.Global.Integer - ID of the ej user record corresponding to this associate; 0 for associates that are not ej users. Example:

GetExtraFields()

Gets the extra fields on User as a map.
Returns: CRMScript.Native.Map Example:

GetIsOnTravel()

Returns: CRMScript.Global.Bool - True if the user is on travel. Example:

GetIsPersonRetired()

Returns: CRMScript.Global.Bool - True if the user is retired and should have no rights, not appear in lists, etc. Example:

GetLastlogin()

Returns: CRMScript.Global.DateTime - Last login date. Example:

GetLastlogout()

Returns: CRMScript.Global.DateTime - Last logout date. Example:

GetLicenseOwners()

Returns: CRMScript.NetServer.NSLicenseOwner[] - The restricted and unrestricted module licenses grouped by license owner.
These module licenses are either assigned or unassigned to this user
Example:

GetName()

Returns: CRMScript.Global.String - Initials, UserId* also used as login name for on-site installations. Identifies user in archives. Example:

GetNickName()

Returns: CRMScript.Global.String - The unique nick name for this user. Used in Service as an alias, similar to Name/Initials. Example:

GetOtherGroups()

Returns: CRMScript.NetServer.NSUserGroup[] - The other groups this user is a member of, apart from the main user group. Example:

GetPerson()

Returns: CRMScript.NetServer.NSPerson - The person associated with this user. Detailed information about the user. Example:

GetRank()

Returns: CRMScript.Global.Integer - Rank order. Example:

GetRequestSignature()

Returns: CRMScript.Global.String - ej users request signature. Example:

GetRole()

Returns: CRMScript.NetServer.NSRole - Users role for role-based security. Determines permissions and access rights for the user. Example:

GetTicketCategories()

Returns: CRMScript.NetServer.NSMDOListItem[] - Request Ticket Categories assigned to the user. Example:

GetTooltip()

Returns: CRMScript.Global.String - Tooltip or other description. Example:

GetType()

Returns: CRMScript.Global.Integer - NSUser type 1=InternalAssociate, 2=ResourceAssociate, 3=ExternalAssociate, 4=AnonymousAssociate, 5=SystemAssociate. Example:

GetUserGroup()

Returns: CRMScript.NetServer.NSUserGroup - The main user group that this user belongs to. Example:

GetUserName()

Returns: CRMScript.Global.String - User name, a.k.a. Login name. This might be an email address. Example:

GetWaitingForApproval()

Returns: CRMScript.Global.Bool - The user is waiting for an administrator to approve/grant her/him access. Example:

SetAssociateId(Integer)

Returns: CRMScript.Global.Void Example:

SetCredentials(NSCredential[])

Returns: CRMScript.Global.Void Example:

SetCustomFields(Map)

Sets the user-defined and extra fields on a User with a map.
Returns: CRMScript.Global.Void Example:

SetDeleted(Bool)

Returns: CRMScript.Global.Void

SetEjUserId(Integer)

Returns: CRMScript.Global.Void Example:

SetExtraFields(Map)

Sets the extra field values on User with a map.
Returns: CRMScript.Global.Void Example:

SetIsOnTravel(Bool)

Returns: CRMScript.Global.Void Example:

SetIsPersonRetired(Bool)

Returns: CRMScript.Global.Void Example:

SetLastlogin(DateTime)

Returns: CRMScript.Global.Void Example:

SetLastlogout(DateTime)

Returns: CRMScript.Global.Void Example:

SetLicenseOwners(NSLicenseOwner[])

Returns: CRMScript.Global.Void
These module licenses are either assigned or unassigned to this user
Example:

SetName(String)

Returns: CRMScript.Global.Void Example:

SetNickName(String)

Returns: CRMScript.Global.Void Example:

SetOtherGroups(NSUserGroup[])

Returns: CRMScript.Global.Void Example:

SetPerson(NSPerson)

Returns: CRMScript.Global.Void Example:

SetRank(Integer)

Returns: CRMScript.Global.Void Example:

SetRequestSignature(String)

Returns: CRMScript.Global.Void Example:

SetRole(NSRole)

Returns: CRMScript.Global.Void Example:

SetTicketCategories(NSMDOListItem[])

Returns: CRMScript.Global.Void Example:

SetTooltip(String)

Returns: CRMScript.Global.Void Example:

SetType(Integer)

Returns: CRMScript.Global.Void Example:

SetUserGroup(NSUserGroup)

Returns: CRMScript.Global.Void Example:

SetUserName(String)

Returns: CRMScript.Global.Void Example:

SetWaitingForApproval(Bool)

Returns: CRMScript.Global.Void Example: