From 50de000228f6a195b7137d1fb95443aff2eec66d Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Tue, 16 Jul 2024 18:58:16 +0200 Subject: [PATCH] Create list_user.py --- check_users/list_user.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 check_users/list_user.py diff --git a/check_users/list_user.py b/check_users/list_user.py new file mode 100644 index 0000000..419cbb4 --- /dev/null +++ b/check_users/list_user.py @@ -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() + +