Reputation: 7162
I am trying to manage my Meteor app users data (role, profile data...etc) which are saved in the Meteor.users collection but can't seem to find how to list all available users accounts (their ID, email...etc) while logged in as user, so I was wondering if someone can please help me by telling me how to do so? Any example will be highly appreciated.
I've tried using Meteor.users.find(), Meteor.users.find({}, {fields: {emails: 1, profile: 1}}); but with no luck even though there are 3 users already defined in my app.
Upvotes: 0
Views: 211
Reputation: 1881
Meteor.users.find() returns all users, did you remember about publishing/subscribing this collection?
Upvotes: 1