Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Restricting access to records based on a field?

(0) ShareShare
ReportReport
Posted on by 321

Is there any way to say that a user can only see records if a field is not null? I have an outside partner who wants access to our CRM, but we only want them to be able to see records that are "tagged" as theirs, by having a value in a field. It's not possible or plausible to change the owner of the records to this user, and their access need would cross between leads, opportunities and activities. 

Just wondering if anyone had any thoughts on this? Is it even possible?

Thanks!

*This post is locked for comments

  • Verified answer
    anonsgate Profile Picture
    anonsgate 420 on at
    RE: Restricting access to records based on a field?

    Make a Team of type Owner in Settings -> Security - > Teams

    On records you want to enable, do Share. Choose user/team and choose your team.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Restricting access to records based on a field?

    It seems the only way is to develop a plugin which handle Retrieve and RetrieveMultiple messages so each time a record is retrieved you can check the field value.

    Hope it helps.

    If you found the answer helpful, please mark as Verified 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Verified answer
    Daniel Wikell Profile Picture
    Daniel Wikell 2,360 on at
    RE: Restricting access to records based on a field?

    Technically you could develop plugins on the Retrieve and RetrieveMultiple messages and filter the records returned based on the combination of the user requesting them and a certain field value. These plugins would probably cause a hit towards the performance and would likely not be the preferred way to do it though.

    Have you looked at Access Teams? It sounds like you could solve this by enabling access teams for these record types and then just add the user to each access team of the records that the user should be able to access.

    See the Access Team parts of this page for reference: msdn.microsoft.com/.../dn481569.aspx

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans