I would suggest handling two endpoints.  One for getting ALL the users and one for getting a SPECIFC user by ID.
- example.com/users
- example.com/users/:id
The second endpoint can be used to find a specific user by id.  
The first endpoint can be used to find all users, but filters can be applied to this endpoint.  
For example: example.com/users?name=RandomName 
By doing this, you can very easily create a query in your Node service based on the parameters that are in the URL.  
api.get('/users', function(req, res) {
    // generate the query object based on URL parameters
    var queryObject = {};
    for (var key in req.query) {
        queryObject[key] = req.query[key];
    }
    // find the users with the filter applied.
    User.find(queryObject, cb);
};  
By constructing your endpoints this way, you are following a RESTful API standard which will make it very easy for others to understand your code and your API.  In addition, you are constructing an adaptable API as you can now filter your users by any field by adding the field as a parameter to the URL.
See this response for more information on when to use path parameters vs URL parameters.