Hello everybody,
is there somewhere a file with a list of all registered users? I don't want to change something on these users, I just want to get a small overview over the existing users.
Thanks for answers and best regards,
Marc
I believe users are stored in the users collection in MongoDB
Yes, the easiest way will be something like:
mongoexport -d sharelatex -c users -f email --csv > sharelatex-emails.csv
just a note for those interested.
If you are running mongodb on a separate docker container, you may need to access the mongodb instance on a different port.
check the port that sharemongo docker is redirecting to:
sudo docker ps
then include the port in the export statement
mongoexport -h localhost:32778 -d sharelatex -c users -f email --type=csv > sharelatex-emails.csv
This either no longer works, or there is insufficient detail to reproduce.
I was able to do this:
docker exec <container name> sh -c 'exec mongoexport -d sharelatex -c users -f email --type=csv' > sharelatex-emails.csv
This either no longer works, or there is insufficient detail to reproduce.
I was able to do this:
docker exec <container name> sh -c 'exec mongoexport -d sharelatex -c users -f email --type=csv' > sharelatex-emails.csv
Where <container name> is mongo. Just to clarify.
?? I get mongoexport not found ...
Most helpful comment
This either no longer works, or there is insufficient detail to reproduce.
I was able to do this:
docker exec <container name> sh -c 'exec mongoexport -d sharelatex -c users -f email --type=csv' > sharelatex-emails.csv