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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to restrict a Security Role accessing certain records(Account) based on its related record Optionset field value

(0) ShareShare
ReportReport
Posted on by 50

How to restrict a Security Role accessing certain records(Account)  based on its related record Option Set field value.

Example: 

We have 2 entities Account and Contact.

Where contact is a lookup on Account entity.

Need to restrict Users having a specific Security Role accessing Account records when contact (lookup field ) Optionset field set to YES (field Confidential = YES ).

Ideally, Security role assigned to user have Org level Read Access to Account entity.

Any help on this would be great.

Thank you

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    You'll need to develop a retrieve and multiple retrieve plugin to restrict access to accounts that meet the criteria you want. I don't see another way without using the code.

  • Madhu M Profile Picture
    50 on at

    Thanks for your response.

    Can we restrict a Security Role accessing a certain Records(Account) even though it have Global level Read Access to the (Account)Entity. If so, Could you please share some reference or a snippet that I can use to restrict accessing record.

    Once again thank you for the response.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 151

#2
ManoVerse Profile Picture

ManoVerse 149 Super User 2026 Season 1

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans