Search code examples
meteormeteor-accounts

Separating users database into two different collections


I want to build a project that will contain different type of users such us Admins & Employees.

Is it possible to make it done through accounts-password and accounts-ui by separating Meteor.users collection?


Solution

  • You can't do that, users is the heart of the authentication system.

    I would recommend using the package alanning:roles to provide different levels of privilege.

    Read more here https://atmospherejs.com/alanning/roles

    There is a package to help administer these here https://github.com/hharnisc/meteor-accounts-admin-ui-bootstrap-3