What's the easiest way to make user groups, using passport, mongoose, express & ejs? I want to make something like the Google Classroom app:
They are commonly called roles. Personally I followed this answer: Verifying roles & authentication with Passport.js.
There are many tutorials but they heavily depend on your strategy. Search for passportjs roles and there must be a tutorial to satisfy your needs.