Create list_user.py
This commit is contained in:
parent
e8b37e0b39
commit
50de000228
1 changed files with 17 additions and 0 deletions
17
check_users/list_user.py
Normal file
17
check_users/list_user.py
Normal 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()
|
||||
|
||||
|
Loading…
Reference in a new issue