Skip to content

Instantly share code, notes, and snippets.

@zk-1
Last active December 7, 2021 21:34
Show Gist options
  • Save zk-1/6d5390653a864d368b7d6eb89278b379 to your computer and use it in GitHub Desktop.
Save zk-1/6d5390653a864d368b7d6eb89278b379 to your computer and use it in GitHub Desktop.
Get a list of all authorized users IDs of a Slack app (max 1001 users)
// Gets a list of all authorized users IDs of a Slack app in your org (max 1001 users)
// In your browser, go to the app's page (slack.com/apps -> Manage -> click on the app), then run this in the browser console:
JSON.parse($("div[data-automount-component|='AppDirectoryAuthorizations']")[0].attributes["data-automount-props"].value).authorizations.map(this_auth => this_auth.encodedUserLink).toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment