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 AX (Archived)

Privileges, Duties and security roles

(0) ShareShare
ReportReport
Posted on by

Hi Community,

I have a security related question for you guys and / or ladies.

I am currently developing in a Dynamics AX 2012R3 system and sometimes i need to update or create new privileges/duties that have been forgotten by other developers. I do not want to wait for a release moment in our production environment (mostly 8-12 weeks period).

Is it required to run a full compile or a full or incremental CIL when importing new privileges, duties or security roles in Dynamics AX?

Kind regards,

Jack

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    usually incremental CIL is enough, also, you can import changes in downtime, possibly at night

  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at

    Hi Jack,

    Keep in mind that moving security using an xpo and models can have a side effect. When your deployment strategy is to move a tested model-store from a staging or acceptance environment, there might be some differences in element ID's between intermediate moved objects and the model store. This can cause the setup to be a bit crippled when the model store replaces the element ID's.

    Further: Security can also possibly work without CIL compilation, but I'm not 100% sure. But incremental for sure will be correcting all intermediate changes. If you have multiple AOS machines, note that the CIL will be updated on other machines when you restart them.

  • 5400 Profile Picture
    7,162 on at

    full compile  - No

    full CIL - No

    incremental CIL - yes. If you have multiple AOS, we have to take some down time to start the other AOS. Logically, if there is no code change CIL is not required but I did not try this scenario.

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    I can't think of any scenario when compilation would be needed, nevertheless I never thought of delivering models without compilation, so I have zero experience with it. You should rather ask Microsoft; they have the best idea about what happens internally.

    In either case, compiling CIL without compiling X++ doesn't make sense, because CIL compiler depends on metadata prepared by X++ compiler. If you need CIL, you need X++ as well (it's not necessary true the other way around). And if you don't update X++, CIL compilation won't do anything.

    CIL compilation creates CIL representations of AX interfaces, classes, tables and enums. Roles and privileges (etc.) are not compiled to CIL types.

  • Community Member Profile Picture
    on at

    Thank you all for your answers! I know enough now :).

  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at

    Hi Jack,

    Would you mind to mark one or more answers so this thread will get the status answered? By marking verified answers you also indicate which answers helped you, so other members can quickly find their resolutions.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans