web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Creating Stub Users with predefined GUIDs

(3) ShareShare
ReportReport
Posted on by 11
Hello all,
 
I am working on a project that will be doing a D365 CRM 9.1 to PowerApps migration. It's worth mentioning that due to technical limitations in our tenant, FastTrack is not an option for us.
 
We are currently investigating the possibility of creating our on-prem users in PowerApps, with 1:1 GUIDs (as you would expect with a FastTracked environment).
 
We have attempted different methods of creating Stub Users in the target environment with specific GUIDs - using the API, Excel Import - but neither seem to work.
 
Does anyone have experience with this? Is this a technically impossible task?
 
Thanks in advance!
I have the same question (0)
  • Verified answer
    Holly Huffman Profile Picture
    6,538 Super User 2025 Season 2 on at
    Good morning, afternoon, or evening depending on your location!
     
    Creating Stub Users with predefined GUIDs in a Dynamics 365 CRM to PowerApps migration can be challenging due to the platform's restrictions on GUID assignment.
    Here's an overview of the situation and potential approaches:
     
    Why This is Challenging
    1. GUIDs in Dataverse:
      • GUIDs are automatically generated by the Dataverse platform when a record is created.
      • Directly assigning a specific GUID to a record (such as a user) is not supported natively.
    2. FastTrack Alternative:
      • FastTrack migrations handle GUID preservation, but since this isn't an option for you, manual methods are required
    Potential Workarounds
    1. Use Non-Interactive Users:
      • Create Non-Interactive Users in the target environment and map them to the original GUIDs during the migration process.
      • This approach ensures that the users exist in the system but do not consume licenses.
    2. Custom Data Migration Tool:
      • Use a tool like KingswaySoft or SSIS to migrate data while preserving GUIDs for ownership and historical tracking.
      • Stub users can be created as placeholders, but their GUIDs cannot be directly set.
    3. Custom API for GUID Mapping:
      • Develop a custom API to map the original GUIDs to new GUIDs in the target environment.
      • Store the mapping in a separate table for reference during the migration.
    4. Use a Pre-Migration Staging Database:
      • Create a staging database where you can assign the desired GUIDs to stub users.
      • Import the data into PowerApps while maintaining the mapping.
    5. Leverage Dataverse Plugins:
      • Write a plugin to intercept the creation of user records and assign the desired GUIDs.
      • Note: This approach may violate platform constraints and should be tested thoroughly.
    Key Considerations
    • Licensing: Stub users may require licenses depending on their access mode.
    • Data Integrity: Ensure that GUID mapping does not compromise data integrity or relationships.
    • Microsoft Support: Engage with Microsoft Support to explore any undocumented options for GUID preservation.
     
    Hope this helps some!
  • Suggested answer
    Nate N. Profile Picture
    11 on at
    Thank you for the excellent response, @Holly Huffman. We have anticipated going the route you have described (specifically, mapping the on-prem users to the online users during migration).
     
    One thing I will note: After a bit more testing on my end, I have learned that creating systemuser records with a predefined GUID is actually possible - via data import, using a CSV file. Here's an example of my test CSV:
    UserId,DomainName,First,Last,InternalEmail
    e11794b0-556b-47a0-844d-b88c75c2fedf,test.stub@testing.com,Test,Stub,test.stub@testing.com
    Mapping the columns accordingly during the pre-import phase allowed this record to be created with the specific GUID we desired.
     
    I hope this helps someone else in the future.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans