Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

remove all content script only works if specified user is present in org #137

Closed gg7aph closed 8 years ago

gg7aph commented 8 years ago

I'm using the "remove_all_content_groups_allusers.py" sample. I've created a comma seperated list of users but the script gives the below error if user specified in py script is not present in org:

'HTTPError: HTTP Error 400: BAD_REQUEST'

achapkowski commented 8 years ago

Please post your code.

gg7aph commented 8 years ago

it's the sample: https://github.com/Esri/ArcREST/blob/master/samples/remove_all_content_groups_allusers.py

MikeMillerGIS commented 8 years ago

Checked in a fix that should proceed normally if user does not exist, please verify