Create list_user.py

This commit is contained in:
David Rotermund 2024-07-16 18:58:16 +02:00 committed by GitHub
parent e8b37e0b39
commit 50de000228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
check_users/list_user.py Normal file
View file

@ -0,0 +1,17 @@
import pymongo
container_name:str = "overleafmongo"
port: int = 27017
client = pymongo.MongoClient(container_name, port)
db = client.sharelatex
users = db.users
cursor = users.find()
for user in cursor:
print(user['email'])
client.close()