A Python package to assist with administering ArcGIS Online Organizations.
- Create a spreadsheet of all users in the org
- Update map service urls in webmaps
- Search for new users and add them to a list of groups
- Move (migrate) all items between accounts (single or batch)
- Search a portal
- Fork and then clone the repo.
- Run and try the samples.
-
Unzip into a folder such as C:/myscripts
-
Change the directory name from C:/myscripts/ago-tools-master to C:/myscripts/agoTools (name must not have dashes).
-
Then do one of the following: A) add that directory to your system path -OR- B) append the directory at runtime using the sys module in python:
import sys sys.path.append('c:/myscripts')
- Create a spreadsheet of all users in the organization
- Add new users to a set of groups
- Migrate items and group ownership/membership between user accounts:
- Generate a CSV listing the items in the organization
- Register items listed in an input CSV to the organization
- Remove (delete) all items from a designated folder under My Content
- Remove (unshare) all items from a designated group in the organization
- Update any missing thumbnails for items under My Content with a default
- Assign roles to Username and Role from input CSV
- Update map service URLs in web maps
- Update the URL for registered services or web applications
- Search Examples (search cheat sheet):
- Python
- Notepad or your favorite Python editor
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Please use the following style guides when contributing to this particular repo:
- 4 spaces for indentation
'singleQuotes'
instead of"doubleQuotes"
publicFunction()
vs# Place comments on their own line preceding the code they explain.
Copyright 2013 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.
[](Esri Tags: ArcGIS-Online Python Tools Library) [](Esri Language: Python)