Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

how to copy roles from one domain to another doamain users

Posted on by 3,024

Hi Experts,

We changed our domain and user id now , there is any possibility to bring security roles from old domain (ABC )  domain (xyz) for all user. If not i think i will do it manually. I will watch old domain(ABC) users one by one and assign that roles to new domain(xyz) users. 

Best Regards,

Shabir Ahmad

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,240 Super User 2024 Season 2 on at
    RE: how to copy roles from one domain to another doamain users

    Hi Shabir,

    In your current situation, you can consider writing a script (job with x++) to move the security role assignments, but also take care of the organization assignments per user/role as well. At least, you need to know how to link the old user to the new user. If there is no clear link, you can't use a script.

    Also note that there is a user/person relation which needs to be updated to the new user.

    When possible, I would recommend to change the old user setup to the new domain like mentioned by Martin. It saves a lot of work and the risk of having too wide access for several users if you don't copy all assignments 1:1 (automated or manually).

  • Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    RE: how to copy roles from one domain to another doamain users

    Does it mean that the answer to my first question is "yes"?

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: how to copy roles from one domain to another doamain users

    Hi Martin Dráb,

    One of our friend did this otherwise, i had same idea as you suggessted. But now i have done it manually for all users.

    Best Regards,

    Shabir Ahmad

  • Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    RE: how to copy roles from one domain to another doamain users

    Does it mean that you dupllicated all users and now you want to duplicate all role assignments? Why didn't you simply update existing users, which would allow you to keep all setup in place?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans