Member Junction
    Preparing search index...
    Index

    Constructors

    Methods

    • Creates the new user as a copy of the template user templateEmail, through the MJ: Users clone preset: its roles, apps, views, settings, dashboards and conversations come with it, owned by the new user. The clone engine creates users inactive for review; a user signing in is active.

      Parameters

      • provider: IMetadataProvider
      • contextUser: UserInfo
      • templateEmail: string
      • preset: string
      • firstName: string
      • lastName: string
      • email: string
      • linkedRecordType: string
      • OptionallinkedEntityId: string
      • OptionallinkedEntityRecordId: string

      Returns Promise<MJUserEntity>

      the new user, or null when the template is missing, isn't flagged IsTemplate, or the copy fails (the reason is logged and the caller falls back to a plain user).

    • Parameters

      • firstName: string
      • lastName: string
      • email: string
      • linkedRecordType: string = 'None'
      • OptionallinkedEntityId: string
      • OptionallinkedEntityRecordId: string

      Returns Promise<MJUserEntity>