How create multiple users accounts using saved data in a collection

I create Graduate information system project. there is a Students collection and I insert the data collection from mongo console. I want to create accounts for all students that are existing in collection. Students can only login to system using student number as username and Identification Number as password.
the student number and Identification Number I entered before in collection
How I can do that
Can I create users accounts from meteor shell?

Use this code on the server:

import { Accounts } from 'meteor/accounts-base';
// 
const userId = Accounts.createUser({ email, password });
1 Like