Esri / developer-support

Proof of concept developer code and samples to help be successful with all ArcGIS developer products (Python, NET, JavaScript, Android…). The repository is designed to be an exchange for sharing coding conventions and wisdom to developers at all skill levels.
Apache License 2.0
266 stars 164 forks source link

Add delete users script #246

Closed kgerrow closed 8 years ago

kgerrow commented 8 years ago

Please make sure this is tested on a test account as it delete's a user and their content.

kgerrow commented 8 years ago

@jgravois

Let me know if this works. I added three new samples and I guess they all come through on one pull request. I've got way fewer files than the last time.

jgravois commented 8 years ago

looking for a Pythonista (or aspiring) to attempt to run @kgerrow's new samples and confirm that the README's provide sufficient explanation regarding their usage and effect.

Please make sure this is tested on a test account as it delete's a user and their content.

glad to see that your disclaimer here is just a reiteration of the warning you also included in the doc you wrote.

MarieAshley commented 8 years ago

Hey @kgerrow,

Nice script. Tested in a trial organization with four users, two had a role named 'delete'. Script works as documented, only those with the 'delete' role were deleted.

Merging!

MarieAshley commented 8 years ago

Also tested 'enabling my esri access' and 'resetting the password' samples in the same trial, those work too!