The script is used for automating the migration of users in ArcGIS Enterprise. It only does viewers accounts, as creator accounts should be handled manually due to group ownership. You will run the scripts in order of the numbering in the title. Additionally, keep the csv files as placeholders for the script.
The script is used for automating the migration of users in ArcGIS Enterprise. It performs several tasks such as fetching users, identifying duplicates, checking for existing accounts, migrating users to the correct user type and groups, logging successful and failed migrations, and sending email notifications with CSV reports. The enrichment ps1 script purpose is AD enrich the migration and failed migration users.
- User Migration: Automatically identifies and migrates users from one domain to another (e.g., from "idpUsername" to "\domain").
- Handling Duplicate Accounts: Detects duplicate user accounts and processes them accordingly.
- Logging: Logs every migration or failure in CSV files for auditing and tracking.
- Email Notifications: Sends reports via email once migrations are completed.
- Encryption: Uses encryption to secure sensitive information like user passwords.
- Fetch Users: Retrieves ArcGIS users of specified types (e.g., Viewer, Editor, FieldWorker).
- Duplicate Handling: Detects and processes duplicate accounts.
- Migration: Migrates user accounts, including roles, licenses, and group memberships.
- Logging: Logs successful and failed migrations in CSV files.
- Email Reports: Sends out email reports with attached CSV logs of the migration process.
- Manual Handling for Creators: The script only processes certain user types (e.g., Viewers, Editors) and does not handle Creators, which must be done manually.
- Non-Interactive Password Encryption: Password encryption needs to be handled outside the script (using the
generate_key()
function once, and manually updating the encrypted password in the script). - No Automatic Retry for Failures: If a migration fails, the script logs the failure but doesn't retry automatically.
- ArcGIS Enterprise Access: The script uses the
arcgis.gis
module to interact with ArcGIS Enterprise, so appropriate permissions are required. - Python Libraries: Requires the
arcgis
,cryptography
,requests
, `logging