Member Junction
    Preparing search index...
    • Get the system user from the UserCache

      Retrieves the "System" user from MemberJunction's UserCache. This user is typically used for CLI operations where no specific user context exists. The System user must have the Developer role to perform metadata sync operations.

      Returns UserInfo

      The System UserInfo object

      Error if System user is not found in the cache or doesn't have Developer role

      const systemUser = getSystemUser();
      const syncEngine = new SyncEngine(systemUser);