title: Getting a list/array of users using Mongoose populate
body: <p>I'm trying to do is display a list of user display names on one of my webpages by doing a simple http get request.</p>
  
  <p>In my users.server.controller.js file I have this function:</p>
  
  <pre><code>exports.list = function(req, res) { 
      User.find().populate('displayName').exec(function(err, users) {
          console.log(users);
          if (err) {
              return res.status(400).send({
                  message: errorHandler.getErrorMessage(err)
              });
          } else {
              res.jsonp(users);
          }
      });
  };
  </code></pre>
  
  <p>When I call this function with an <code>$http.get()</code> request from AngularJS controller I <strong>get a 400 error.</strong></p>
  
  <p>Here is my Mongoose User schema</p>
  
  <pre><code>/**
   * User Schema
   */
  var UserSchema = new Schema({
      firstName: {
          type: String,
          trim: true,
          default: '',
          validate: [validateLocalStrategyProperty, 'Please fill in your first name']
      },
      lastName: {
          type: String,
          trim: true,
          default: '',
          validate: [validateLocalStrategyProperty, 'Please fill in your last name']
      },
      organization: {
          type: String,
          trim: true,
          default: '',
          required: 'Please fill in an organization name'
      },
      position: {
          type: String,
          trim: true,
          default: '',
          required: 'Please fill in the title of your position'
      },
      displayName: {
          type: String,
          trim: true
      },
      email: {
          type: String,
          trim: true,
          default: '',
          validate: [validateLocalStrategyProperty, 'Please fill in your email'],
          match: [/.+\@.+\..+/, 'Please fill a valid email address']
      },
      username: {
          type: String,
          unique: 'testing error message',
          required: 'Please fill in a username',
          trim: true
      },
      password: {
          type: String,
          default: '',
          validate: [validateLocalStrategyPassword, 'Password should be longer']
      },
      salt: {
          type: String
      },
      provider: {
          type: String,
          required: 'Provider is required'
      },
      providerData: {},
      additionalProvidersData: {},
      roles: {
          type: [{
              type: String,
              enum: ['user', 'admin']
          }],
          default: ['user']
      },
      updated: {
          type: Date
      },
      created: {
          type: Date,
          default: Date.now
      },
      /* For reset password */
      resetPasswordToken: {
          type: String
      },
      resetPasswordExpires: {
          type: Date
      }
  });
  </code></pre>