https://github.com/codemonauts/rocketchat-listuser
List all user sorted by lastLogin date
https://github.com/codemonauts/rocketchat-listuser
Last synced: 8 months ago
JSON representation
List all user sorted by lastLogin date
- Host: GitHub
- URL: https://github.com/codemonauts/rocketchat-listuser
- Owner: codemonauts
- Created: 2019-07-09T10:06:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-11T14:04:18.000Z (almost 4 years ago)
- Last Synced: 2025-03-11T19:49:31.479Z (12 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rocketchat-listuser
This script connects to your Rocket.Chat server via the REST API and prints all active useraccounts sorted by the "LastLogin" field.
This helps you to identify inactive user that you can deactivate1 and therefore reduce your attack surfacea and to reduce your costs,
if you are using a hosted RocketChat server.
1: Instead of deleting a user, you should always just deactivate them.
This also locks the account but keeps it in the databse which keeps your backlog intact.
Deleting a user would also delete all chat messages.
# Usage
```
pip install -r requirements.txt
cp config.py.example config.py
vim config.py
python main.py
```