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

Can a user viewing a record be audit logged, or does same activity have to take place?

(0) ShareShare
ReportReport
Posted on by 803

It doesn't look like there is a way to audit whether a user simply looks at a record but doesn't take any action beyond that. Can anyone confirm? 

*This post is locked for comments

I have the same question (0)
  • rthompson Profile Picture
    1,532 on at

    Here what you can audit.

    https://www.qgate.co.uk/knowledge/managing-audit-logs-in-microsoft-dynamics-crm/

    However,  add a javascript on the load form event and add logic to update the audit log table to track when are user is accessing a record in CRM.

  • Verified answer
    Wouter Madou Profile Picture
    3,392 on at

    You can enable read access and view the logs through Office 365 Security & Compliance Portal.

    This is a nice post explaining it:

    www.henryjammes.com/.../audit-user-read-access-to-dynamics-365.html

  • Ben T Profile Picture
    803 on at

    Do you have some code sample or documentation for updating the audit log table using javascript?

  • rthompson Profile Picture
    1,532 on at

    Hi Ben,

    Just asking have you used process category "Action"?

  • Ben T Profile Picture
    803 on at

    No - what is this? We need a history of changes to records that go beyond update, create, and delete. I am most curious to know how javascript can be used to update the audit table as you mentioned. Have you done this before?

  • rthompson Profile Picture
    1,532 on at

    Hi Ben,

    After thinking over what you are trying to do.  I think it might be better to create your own audit entity to track users accessing entities.

    Because of the different types of auditing you can do in the system.  I would not suggestion creating a custom audit log.

    So I would create a function in your loadForm() event that could do a web api POST to your entity log.   This should be very simple.  I would create to 3 new fields.

    1) EntityName

    2) Guid Id

    3) Update the "new_name" field with the "Name" information on the record that is being access.

    This is simple and will give you what you want.

    However,  if you are on 365 online.   They do have a way to do this already.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/auditing-overview

    Data that can be audited

    The following list identifies the data and operations that can be audited:

    • Create, update, and delete operations on records.

    • Changes to the shared privileges of a record.

    • N:N association or disassociation of records.

    • Changes to security roles.

    • Audit changes at the entity, attribute, and organization level. For example, enabling audit on an entity.

    • Deletion of audit logs.

    • When (date/time) a user accesses Dynamics 365 for Customer Engagement apps data, for how long, and from what client.

      Enabling or disabling of field level security by setting the IsSecured attribute cannot be audited.

  • Ben T Profile Picture
    803 on at

    rthompson,

    Thanks you for all your help. I found a way in the Office 365 Security center to audit "read" of Dynamic records. It's not very user friendly, but the information is there.

    However, I am still needing log more granular events, which is why using javascript to update the audit log interests me. Let's say, for instance, we have a confidential record and onload of that record we display a JavaScript window.confirm that says "This is confidential record - press Continue to view or Cancel to go back." We would want a record of everyone who pressed cancel versus pressed continue. This activity would not be normally audited.

    We cannot use security roles to accomplish this, for many reasons that go beyond the scope of this post. However, one idea I have is that we create a task for every user that presses "continue" to view the confidential information. A supervisor can see all tasks, and the creation of the task would be audited.

  • rthompson Profile Picture
    1,532 on at

    Glad you found a way and its working for you.

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

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans