Last active
September 19, 2016 15:06
-
-
Save weiserr/a6b03e1f3d0ec6ad35bb to your computer and use it in GitHub Desktop.
Aquire Atlassian Stash user E-Mail addresses
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
curl -u $user:$password -X GET -H "Accept: application/json" -H "Content-Type: application/json" "http://$stashurl/rest/api/1.0/admin/users?limit=500" | sed 's/\}/\n/g' | grep emailAddress | sed 's/.*emailAddress\":\"//' | sed 's/",\"id\".*//' | grep . | sort -fu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment