listSupportedSecurityQuestions(userId) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API listSupportedSecurityQuestions parameter userId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/factors/questions`;

    return new Collection(
      this,
      url,
      new ModelFactory(models.SecurityQuestion),
    );
  }
/**
   *
   * @param userId {String}
   * @description
   * Enumerates all available security questions for a user's `question` factor
   * @returns {Collection} A collection that will yield {@link SecurityQuestion} instances.
   */
@param userId {String}
@description
Enumerates all available security questions for a user's `question` factor
@returns {Collection} A collection that will yield  SecurityQuestion instances.
@param userId { String } @description Enumerates all available security questions for a user ' s ` question ` factor @returns { Collection } A collection that will yield SecurityQuestion instances .
listSupportedSecurityQuestions(userId) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API listSupportedSecurityQuestions parameter userId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/factors/questions`;
    return new Collection(
      this,
      url,
      new ModelFactory(models.SecurityQuestion),
    );
  }
listSupportedSecurityQuestions ( userId ) { if ( ! userId ) { return Promise . reject ( new Error ( 'OKTA API listSupportedSecurityQuestions parameter userId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ userId } ` ; return new Collection ( this , url , new ModelFactory ( models . SecurityQuestion ) , ) ; }
@param userId {String}
 @description
 Enumerates all available security questions for a user's `question` factor
 @returns {Collection} A collection that will yield {@link SecurityQuestion} instances.
@param userId { String } @description Enumerates all available security questions for a user ' s ` question ` factor @returns { Collection } A collection that will yield { @link SecurityQuestion } instances .