Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Handling a security role that exists in Test and Prod but not Dev environment

Posted on by 139

Hello All!

Looking for some guidance from some more experienced Dynamics developers...

My scenario is this:

Doing enhancements to a Dynamics application that was developed on by others in the past. Looks like they did some big Dynamics "no-no's".  In my TEST and PROD env, ive got a security role that exists BUT does not exist in DEV. This security role is not a part of a solution in TEST and PROD, and is an unmanaged security role on the default solutions. 

Im curious the best way to approach this so that I can properly get it created as part of a managed solution to make this more clean. 

Would I simply manually recreate the same Role in DEV and push it up? If I did this, would I need to delete the unmanaged Role in TEST and PROD? In Prod, I think I would have to reassign and users to this new role being imported from DEV. 

Is it possibly to manually create this Role in DEV, then possibly use some SQL to assign it the same Role IDs it has in TEST and PROD? 

I'm a little worried this unmanaged Role and and its IDs might be associated to some other customizations in TEST and PROD....so manually creating a new one and removing the unmanaged one could maybe break some things. 

Any guidance is appreciated!

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Handling a security role that exists in Test and Prod but not Dev environment

    Hello,

    I would say - export the solution from test or prod that contains that role, import it to the dev, move it to the usual flow when you move customizations between dev, test and prod.

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

Featured topics

Product updates

Dynamics 365 release plans