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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

Security configuration migration between environments

(0) ShareShare
ReportReport
Posted on by

Hi, Can anyone suggest the best practice to migrate the Security configurations between two different D365O environments and the functionality available in D365O for exporting and importing security configurations.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    306,118 Super User 2026 Season 1 on at

    Hi,

    The security configuration export and import is related to runtime changes. If you have changes done in Visual Studio, the changes will be part of a deployment.

    If you are changing/adding roles or other security artifacts, the changes are kept in the database for runtime security overrides. These changes can be done in a separate environment like DEV/TEST or a staging first. Then you are able to test the security before importing/applying it in a live environment. Note that all changes to security artifacts are logged in D365, so changing, reverting, changing again in a live environment will be very confusing for auditors and should prevented.

    The security metadata which will be exported from the security configuration form are related to roles, duties and privileges only. No user/role assignments are part of this package.

  • Community Member Profile Picture
    on at

    Hi Andre,

    Thanks for the reply, I have below queries.

    The security metadata which will be exported from the security configuration form includes only the added or modified roles, duties and privileges Or it will export entire out of the box roles, duties, privileges along with the changes?

    How can I export the user/role assignments along with security metadata from one D365O env and import in to another D365O env?

    Kind Regards,

    Manikandan

  • André Arnaud de Calavon Profile Picture
    306,118 Super User 2026 Season 1 on at

    Hi Manikandan,

    The export from the security administration form is only taking the database changes. So all other standard roles and customizations done in Visual Studio are being deployed with software packages.

    The users can be exported using the Data entity "User information".

    The user/role assignment can be migrated using the "Security user role association" entity.

    If you have organization assignments as well on the security, you also need to use the entity "System security user role organization".

  • Community Member Profile Picture
    on at

    Thanks Andre.

  • Martin Dráb Profile Picture
    239,932 Most Valuable Professional on at

    If your question has been answered, please close the thread by marking the reply (replies) that answered it. Notice Did this answer your question? beside every reply.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans