overleaf/check_users/list_invited.py

19 lines
260 B
Python
Raw Permalink Normal View History

2024-07-16 18:57:59 +02:00
import pymongo
container_name:str = "overleafmongo"
port: int = 27017
client = pymongo.MongoClient(container_name, port)
db = client.sharelatex
users = db.projectInvites
cursor = users.find()
for user in cursor:
print(user['email'])
client.close()