Sync on-prem users to Microsoft Graph
Recipe ToolsMarketingDocument/FileData ParserUtilities
What it does
When the daily schedule triggers, this automation downloads the on-prem CSV file and deduplicates users before creating them in Microsoft Graph. After migration, it runs a script to deactivate those users in the local Active Directory.
Who it's for
IT teams who manage user directories and need to move on-prem users to cloud-based management without manual effort.
Apps used
How teams use this
Migrate users without manual steps
Run the daily migration on schedule so on-prem users move to Microsoft Graph automatically with deduplication built in. The team does not need to create users or manage the process by hand.
Extend migration to include custom attributes
Add extra fields from the CSV file to the Microsoft Graph user record so department, manager, or cost center data is set during migration. This requires mapping those columns in the parser step.
Retarget migration for a different on-prem system
Point the automation to a different on-prem file location or change the deactivation script to match a different Active Directory environment. The flow stays the same.
Add approval before deactivating on-prem users
Insert a condition to check a flag or send a notification before the deactivation script runs so someone can verify the migration succeeded. This adds a safety gate to the process.
How it works
- Run daily at midnight. Start this automation once per day at midnight to begin the user migration process from on-prem to Microsoft Graph.
- Download the on-prem CSV file. Retrieve the CSV file from the on-prem location that contains the list of users ready for migration to Microsoft Graph.
- Parse and deduplicate users. Parse the CSV file and remove duplicate entries so each user is created only once in Microsoft Graph, preventing conflicts.
- Create users and role folders. For each user, search Microsoft Graph to confirm they do not exist, then create the user and a role-based folder for organization.
- Deactivate users in Active Directory. Run the Powershell script to deactivate migrated users in the local Active Directory so they no longer have on-prem access.