Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Register Plugin On RetrieveMultiple for Security Manners

Posted on by 732

Hello,

I am trying to Apply some security controls on global views level for account and conatct entities on the retrieveMultiple request. what is the correct way to do so? 

Thank you

  • Nagaraj_Matta Profile Picture
    Nagaraj_Matta 55 on at
    RE: Register Plugin On RetrieveMultiple for Security Manners

    Hi Greetings !

    you can easily acheive this requirement using retrieveMultiple request.

    you can get the context user on loading of that global view and fetch respetive security role of that respective user.

    if the role satisfy your need then you can show the records or else you can add a condition expression through code to display only relevant records.

    check below it will give you a completed idea on how to acheive this.

    crm365blog.wordpress.com/.../

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: Register Plugin On RetrieveMultiple for Security Manners

    Hello,

    As a first attempt, you should try with the OOB security roles permissions; however, if you need additional custom security, you can add a plugin that will be triggered on the message "RetrieveMultiple" of the entity.

    You can check the following links:

    carldesouza.com/.../

    crmtipoftheday.com/.../

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,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans