Skip to main content

Notifications

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

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
    Madhu M 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
    meelamri 13,204 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans