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)

Database Log - changes to security roles being audited?

(0) ShareShare
ReportReport
Posted on by

I'm looking for a way to audit + log changes made to any security roles within AX2012.  I have successfully added/removed and logged other tables/fields, but I'm struggling to work out which table etc I need to log this type of change or update.

Any help appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    First of all, as maybe you already discovered, the security in 2012 is kept in the _Model database as AX artifacts, and not as data setup of the system. The tables used in the database are prefixed with ModelSecurity*. There are also Views created, their names prefixed with SECURITY*. The same views are available in AX, in the System documentation node, and can be browsed.

    Now, not sure what kind of audit you are thinking of, but not sure if Database Log will work on these - however, I haven't tried it myself to see if it works or not. Not sure what type of audit you are referring to, and if you've used something else in your endeavors.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi ddh76,

    Like Lulian mentioned, the security objects are in the AOT, it is not a table setup. To keep track of changes you could setup source control, e.g. Team foundation server or the MorphX. For more information, check this page: msdn.microsoft.com/.../aa639568.aspx

    The database log can only be used to track the user assignments to roles.

  • SpoonMan Profile Picture
    170 on at

    Just out of interest, how would you turn on logging for the user role assignment?

    Ta

    Dan

  • alexd Profile Picture
    457 on at

    I'd be interested in how to turn on DB logging of User assignment to Roles as well, do any of you have an update or solution?

    Kind regards,

    Alex

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

    Logging of the user assignment is not working in AX2012. It is possible to select the table "Security user role" from the System node when you choose to see all tables (not only main), but the outcome is not like expected. Several versions don't insert records. AX 2012 R3 insert records on insert and delete, but the details are empty. So not useful.

  • alexd Profile Picture
    457 on at

    Yes, I can confirm that it does nothing on R2 CU6.

  • Suggested answer
    Chris Haley Profile Picture
    on at

    Perhaps a little late, but I just posted an example of a very small customisation to enable audit logs for role membership changes for users:

    blogs.msdn.microsoft.com/.../dynamics-ax-2012-audit-of-security-role-membership-changes

  • Community Member Profile Picture
    on at

    An excellent solution - I only wish I had found it sooner.

    I asked this on your blog already but why is the Company field set to blank?

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