Skip to content

Grantee

The Grantee class represents a user or a group with specific permissions or roles in a system. It extends the Record class and adds properties and methods related to group membership, administrative rights, and password management.

Static Properties:

  • everyone: Grantee
    Group representing all users.
  • dev: Grantee
    Group representing developers.
  • admin: Grantee
    Group representing administrators.

Properties:

  • isGroup: boolean
    Indicates whether the current Grantee is a group.
  • isRoot: boolean
    Indicates whether the current user is Root Administrator (user with all permissions).
  • isAdministrator: boolean
    Indicates whether the current user is an administrator.
  • isDeveloper: boolean
    Indicates whether the current user is a developer.
  • members: Grantees
    A collection of Grantee objects representing the members of the current Grantee if it is a group.
  • memberOf: Grantees
    A collection of Grantee objects representing the groups of which the current user is a member.
  • displayName: string
    A read-only display name in the form 'name (label)'. For example: 'dev (Developers)'
  • id: string (read-only)
    ID of the Grantee.
  • name: string
    Short name of the Grantee. This name will be used to log into the system.
  • label: string
    Friendly name of the Grantee. Usually user first and last name.
  • active: boolean
    Whether the Grantee is active.
  • description: string
    The description of the Grantee.
  • occupation: string
    The occupation of the Grantee.
  • title: string
    The title of the Grantee.
  • lockTimeout: number
    The period of inactivity after which the user needs to re-enter his password again in order to continue working in the Application Center.
  • dsdn: string
    Returns the directory service distinguished name (DSDN) of the Grantee. Reserved only for domain users.
    For example:
    uid=b.alexander,ou=Admins,o=6138bd089ef94539c239b592,dc=nodeacta,dc=com
    This is automatically initialized when you import a domain user to the system. Using domain users in NodeActa requires at least Professional server license.
  • language: string
    The selected language of the Application Center for the Grantee. To change the logged user's language, use Main Menu→Help→Change Language.
  • email: string
    The email address of the Grantee.

Methods:

  • checkRight( right: string ): boolean (static)
    Checks if the current user’s permissions on data class Grantee (SYS$GRANTEE).
  • sMemberOf(group: string | Grantee): boolean
    Checks if the current Grantee is a member of the specified group.
  • resetPassword()
    Resets the password for the Grantee. User password is reset to match the user's name.