Skip to content

Instantly share code, notes, and snippets.

@weiserr
Last active September 19, 2016 15:06
Show Gist options
  • Save weiserr/a6b03e1f3d0ec6ad35bb to your computer and use it in GitHub Desktop.
Save weiserr/a6b03e1f3d0ec6ad35bb to your computer and use it in GitHub Desktop.
Aquire Atlassian Stash user E-Mail addresses
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