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

  • Madhu M Profile Picture
    50 on at
    RE: How to restrict a Security Role accessing certain records(Account) based on its related record Optionset field value

    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.

  • Suggested answer
    meelamri Profile Picture
    13,212 User Group Leader on at
    RE: How to restrict a Security Role accessing certain records(Account) based on its related record Optionset field value

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans