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,...
Answered

Security overview (roles/privileges)

(0) ShareShare
ReportReport
Posted on by 12

Hi,
(mostly) to comply with our GDPR, my organization has requested easy insight in what team has access to what entity (8.2 on premise).

Well, the step from team to role is an easy one and can be performed on the team form. But from role to privilige, which is the missing link, seems to be not there out of the box. Any workaround to get the detailed privileges into a view (or how to show a sql query on a form)?

Thanks in advance for thinking along with me.
Best regards,
Jeroen


I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Jeroen,

    You can use following FetchXml to collect privileges associated with the particular role:

    <fetch>

     <entity name="role" >

       <link-entity name="roleprivileges" from="roleid" to="roleid" intersect="true" >

         <link-entity name="privilege" from="privilegeid" to="privilegeid" >

           <attribute name="canbebasic" />

           <attribute name="canbedeep" />

           <attribute name="accessright" />

           <attribute name="canbeentityreference" />

           <attribute name="canbelocal" />

           <attribute name="canbeglobal" />

           <attribute name="name" />

         </link-entity>

       </link-entity>

     </entity>

    </fetch>

    And obviously you can change it to SQL if you need.

  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Jeroen,

    There would be no OOB way to create a view which is based on privilige entity.

    So you could

    1. Build a SSRS report with fetchXml to see priviliges of a specific role, as Andrew suggested.

    2. Embbed a HTML web resource, retrieving all priviliges of a specific role by web api function:

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt607997(v=crm.8)

    This method means we create a view which is based on privilige manually by ourselve.

    You could take mine as reference, it'll retrieve top 10 priviliges of System administrator.(That's because there are about thousands records, I just tested and you could do pagination with other js plugin)

    
    
    
      
      Page
      
      
      
      
    
    
    
      

    Demo result:

    pastedimage1576666489381v1.png

    Regards,

    Clofly 

  • Jeroen J Profile Picture
    12 on at

    Andrew, Clofly,

    Thanks for the inspiration! You guys got me into the right direction completing this quest!

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 103 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 83

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans