Skip to content

A really simple Python script to obtain all access logs from your Slack workspace and to find the last login time for each user.

License

Notifications You must be signed in to change notification settings

frenzymadness/Slack-last-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack-last-login

A really simple script to obtain all available access logs from your Slack workspace and to find the last login time for each user.

API documentation

Warnings

  • This script uses legacy tokens - more info here
  • Do not share your token!
  • API limitations (more info):
    • 1000 logs per page
    • 100 pages
    • 20 requests per minute

Requirements

  • Python >= 3.6
  • requests, tqdm (pip install -r requirements.txt)
  • Slack API token
    • Token generator page
    • Place your token to api_token.py.tpl and rename the file api_token.py.tplapi_token.py

Usage

Just run python3 team_access_log.py. It will show you a progress and produce two files:

  • raw_data.csv which contains all downloaded access logs converted from JSON to CSV for further processing
  • last_logins.csv which contains an information about last login and a count of inactive days for each user

License

MIT

About

A really simple Python script to obtain all access logs from your Slack workspace and to find the last login time for each user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published