list (params) {
    return super.list(params)
      .then(users => {
        return Bluebird.map(users.list, user => {
          return this.yggdrasil.repositories.auth.getForUserId(user._id)
            .then(credentials => {
              user.credentials = credentials;
              return Bluebird.resolve(user);
            })
            .catch(() => {
              return Bluebird.resolve(user);
            });
        })
          .then(mapResult => {
            return Bluebird.resolve({
              list: compact(mapResult)
            });
          });
      });
  }
/**
   * Augment the users data with credentials data if any
   *
   * @param params
   */
Augment the users data with credentials data if any
@param params
Augment the users data with credentials data if any @param params
list (params) {
    return super.list(params)
      .then(users => {
        return Bluebird.map(users.list, user => {
          return this.yggdrasil.repositories.auth.getForUserId(user._id)
            .then(credentials => {
              user.credentials = credentials;
              return Bluebird.resolve(user);
            })
            .catch(() => {
              return Bluebird.resolve(user);
            });
        })
          .then(mapResult => {
            return Bluebird.resolve({
              list: compact(mapResult)
            });
          });
      });
  }
list ( params ) { return super . list ( params ) . then ( users => { return Bluebird . map ( users . list , user => { return this . yggdrasil . repositories . auth . getForUserId ( user . _id ) . then ( credentials => { user . credentials = credentials ; return Bluebird . resolve ( user ) ; } ) . catch ( ( ) => { return Bluebird . resolve ( user ) ; } ) ; } ) . then ( mapResult => { return Bluebird . resolve ( { list : compact ( mapResult ) } ) ; } ) ; } ) ; }
Augment the users data with credentials data if any
 @param params
Augment the users data with credentials data if any @param params