How to migrate Legacy Realm users to MongoDB

I am migrating Legacy Realm into MongoDB using guide provided by support team.
https://docs.realm.io/realm-legacy-migration-guide/
All the data has copied from realm successfully excluding user (App user).
is any way to import users from realm to MongoDB ?

I just did with the help of realm-web sdk.

In my case I use the custom-auth function. So before I migrate the data I call the login function for every user I have:

const RealmWeb = require('realm-web');
const app = new RealmWeb.App({ id: 'app-id' })
const credentials = RealmWeb.Credentials.function({
   email: person.email,
   password: person.password
})
const result = await app.logIn(credentials)
``