Created
July 3, 2018 12:37
-
-
Save neutraltone/497fcb56e94b4b850488e6fe023bfa40 to your computer and use it in GitHub Desktop.
Deactivate slack user accounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function () { | |
var inactiveAccounts = document.querySelectorAll('#active_members .admin_list_item.active.inactive'); | |
var toDeactivate = inactiveAccounts[0]; | |
$(toDeactivate).trigger('mouseover'); | |
toDeactivate.click() | |
toDeactivate.querySelector(".api_disable_account.sub_action").click() | |
}, 60000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment