Roles are used for security administration and can have zero to many Users as members. Defines groups of permissions that can be assigned to multiple users.

Hierarchy (view full)

Constructors

Properties

Description: string = null

Description of the role

DirectoryID: string = null

The unique ID of the role in the directory being used for authentication, for example an ID in Azure

ID: string = null

Unique identifier for the role

Name: string = null

Name of the role

SQLName: string = null

The name of the role in the database, this is used for auto-generating permission statements by CodeGen

__mj_CreatedAt: Date = null

Timestamp when the role was created

__mj_UpdatedAt: Date = null

Timestamp when the role was last updated

Methods

  • Copies initialization data from a plain object to the class instance. Only copies properties that already exist on the class to prevent creating new fields. Special handling for DefaultValue fields to extract actual values from SQL Server syntax.

    Parameters

    • initData: any

      The initialization data object

    Returns void