Skip to content

Find users in demoยถ

๐Ÿ‘ค How to Find Demo Users in MongoDBยถ

To locate demo users in the demodb database, follow these steps:

Use mongosh for MongoDB queries

The following instructions assume you have access to the demo MongoDB instance.

  1. Connect to MongoDB using mongosh:

    mongosh
    
  2. Switch to the demodb database:

    use demodb
    
  3. Query for a user by MSISDN:

    db.demousers.find({ msisdn: "163...." })
    

    Example output:

    [
      {
        "_id": ObjectId("688ba55b06a9a12924911a36"),
        "name": "name",
        "username": "username",
        "email": "emai@emai.com",
        "msisdn": "163....",
        "address": "1 a",
        "secretQuestion": "Company",
        "secretAnswer": "v",
        "tosConsent": true,
        "isMsisdnVerified": true,
        "__v": 0,
        "deviceId": "AAAA",
        "simId": "AAAA"
      }
    ]
    

MSISDN

The msisdn field represents the user's phone number. Replace "163...." with the actual number you are searching for.