Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch org_id of existing slack users #59

Merged
merged 5 commits into from
Jan 25, 2022
Merged

Fetch org_id of existing slack users #59

merged 5 commits into from
Jan 25, 2022

Conversation

jatzz10
Copy link
Contributor

@jatzz10 jatzz10 commented Jan 12, 2022

Approach -

  1. Fetch refresh_token of all existing slack users from prod db
  2. Use these tokens to fetch my_profile data of all users from platform API
  3. Extract org_id from this my_profile data of each user
  4. Export it to a csv file

Note - Fetching my_profile data from API takes around ~ 10 sec (approx.) for a user

@jatzz10 jatzz10 self-assigned this Jan 12, 2022
@jatzz10 jatzz10 changed the title Fetch org_user_ids of slack users, in order to get their org_ids Fetch org_id of existing slack users Jan 17, 2022
scripts/fetch_org_id_for_existing_slack_users.py Outdated Show resolved Hide resolved
scripts/fetch_org_id_for_existing_slack_users.py Outdated Show resolved Hide resolved
scripts/fetch_org_id_for_existing_slack_users.py Outdated Show resolved Hide resolved
scripts/fetch_org_id_for_existing_slack_users.py Outdated Show resolved Hide resolved
scripts/fetch_org_id_for_existing_slack_users.py Outdated Show resolved Hide resolved
@jatzz10 jatzz10 merged commit d7bd904 into master Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants