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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Duplicate detection isn't checking with unauthorized records

(0) ShareShare
ReportReport
Posted on by 170

Hello all!


I've noticed recently that that users have been creating contacts which exist in the system even though the duplicate detection rules are published and working fine. The issue however is that the user isn't authorized to "read" the existing records. 

How do I set the duplicate detection (DD) so that the user gets a DD-warning even if he wasn't authorized to read them? 

Thanks in advance. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    jestuder Profile Picture
    158 on at
    RE: Duplicate detection isn't checking with unauthorized records

    This article might help:

    www.microsoft.com/.../turn-duplicate-detection-rules-on-or-off-for-the-whole-organization.aspx

    Also on that link check the "See Also" as it has some links there that might help as well.

  • Verified answer
    ashlega Profile Picture
    34,477 on at
    RE: Duplicate detection isn't checking with unauthorized records

    Duplicate detection rules will respect security role settings, so there is not a lot you can do . There is a longer explanation here:

    www.powerobjects.com/.../duplicate-detection-with-security-roles-dynamics-crm

    But, in a nutshell.. You'll have to change your security settings if you wanted duplicate detection to work on "all" contacts (besides, the point of duplicate detection is to notify the user that there is an existing record.. if the user can't access that record, such a notification won't be useful at all)

  • Hikmat Daghestani Profile Picture
    170 on at
    RE: Duplicate detection isn't checking with unauthorized records

    Hi Alex,

    I have two main security roles for users, one which can see all records in the organization (global) and the other can read records in the local business unit. The local created a duplicate contact under an account. The organization level users see now doubled contacts.

    I wanted this duplicate warning so that the user could inform us and we could share this record with him instead of having two of the same record.

    I may not change security permissions for users with local business units settings due to data privacy policy issues.

    Thanks for the tip.

    Looking forward for further thoughts.

  • Suggested answer
    ashlega Profile Picture
    34,477 on at
    RE: Duplicate detection isn't checking with unauthorized records

    Hi Hikmat,

      afaik,  you can't make Dynamics duplicate detection work that way (you''ll need to change the security).

      You might implement custom duplicate detection by adding a plugin and running it in the system context(or by creating an impersonated IOrganizationService directly in the plugin code by passing null as userid), and, then, you might use it to check for the duplicates. Then you might throw an error message from the plugin. 

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans