Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to migrate Users with their security role

(0) ShareShare
ReportReport
Posted on by 65

We are performing migration from on premise to dynamics 365 online using kingsway soft.

We have migrated users but they don't have security role and we want a same role which they had earlier in the on premise version.

Need suggestion for how can we migrate users with their security roles.

*This post is locked for comments

  • Suggested answer
    Aric Levin Profile Picture
    30,188 Moderator on at
    RE: How to migrate Users with their security role

    Basically Alex covered it all, but just a little addition.

    You need to have some sort of mapping of users and roles from the source system to the target system.

    I am not sure how many users you have, but if you already imported the users and roles, and did not create the mapping during the import migration process it might be easier just to add the roles directly in Online.

    If you have many users, or can have some matching process, you can do the following:

    Query the users from the Source System and the Destination System and find a match based on email address for example. Save that in a matching table.

    Query the roles from the Source System and the Destination System and find a match based on the role name for example. Make sure when you query the roles, your query the parent role (where parentroleid is null)

    Finally Query the userroles in the Source system, find the match of the target user id and target role id records in your matching tables, and create a user role record in the Target system.

    Hope this helps.

  • Suggested answer
    ashlega Profile Picture
    34,477 on at
    RE: How to migrate Users with their security role

    Hi,

     I'd try this:

    - migrate the roles (through the solution file).

    - Migrate the business units (through SSIS or manually)

    - Re-create the users(manually?)

     And, then, I would probably use a local database to do some mapping:

    - Download all system roles (with BU names) to a local table(call it Onlineroles) from CRM online

    - Download all system roles (with BU names) to a local table (call it localroles) from on-prem

    - Do the same for users

    Then you'll be able to run a query to map local users/roles to the online users/roles (keep in mind you'll need to map those roles by both BU name and role name since your goal would be to get bu-specific roles ID-s), and you'll just need to upsert that data to the systemuserroles entity

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans