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 :
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,216 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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans