diff --git a/check_users/list_invited.py b/check_users/list_invited.py new file mode 100644 index 0000000..720202d --- /dev/null +++ b/check_users/list_invited.py @@ -0,0 +1,18 @@ +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() + + +