Created
August 17, 2018 16:30
-
-
Save zaimramlan/2db0c85562df2272cc8ebb0f2ecb8d87 to your computer and use it in GitHub Desktop.
Get list of AppStore Connect users and roles
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
var text = "Email, Name, Role,\n" | |
$('div.content-group').first().find('tbody').children().each(function() { | |
var email = $(this).children()[1].innerText | |
var name = $(this).children()[2].innerText.replace('Invitation Expired Resend', '') | |
var role = $(this).children()[3].innerText | |
text += `${email}, ${name}, ${role}\n` | |
}) | |
var a = document.createElement("a"); | |
var file = new Blob([text], {type: 'text/csv'}); | |
a.href = URL.createObjectURL(file); | |
a.download = name; a.click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment