locked
CRM 2013 Javascript check user have User level create privilege for particular entity RRS feed

  • Question

  • Hi Experts,

    The Javascript retrieves the roles of the user and privilege but it shows canbedeep, canbelocal, canbeglobal to true even if user role have only user level create privilege. 

    '<fetch mapping="logical" >',

        '<entity name="role">',
            '<attribute name="name" />',
            '<link-entity name="systemuserroles" from="roleid" to="roleid">',
                '<link-entity name="systemuser" from="systemuserid" to="systemuserid">',
                    '<filter>',
                        '<condition attribute="systemuserid" operator="eq-userid"/>',
                    '</filter>',
               ' </link-entity>',
            '</link-entity>',
           ' <link-entity name="roleprivileges" from="roleid" to="roleid">',
               ' <link-entity name="privilege" from="privilegeid" to="privilegeid">',
                   ' <attribute name="canbebasic" />',
                    ' <attribute name="canbedeep" />',
                     ' <attribute name="canbelocal" />',
                      ' <attribute name="canbeglobal" />',
                     '  <attribute name="accessright" />',
                      '<filter type="and">',
               '<condition attribute="name" operator="eq" value="prvcreate' + entity + '" />',
               '</filter>',
                    '  </link-entity>',
                 ' </link-entity>',
              '</entity>',
         ' </fetch>'

    Would you please help?

    Thanks!


    Thursday, March 20, 2014 1:21 PM

All replies

  • Hi Experts,

    I have been struggling with this from last 1 week.

    Anybody who can share there knowledge?

    Thanks!

    Friday, March 21, 2014 4:20 AM
  • Hello MVP's,

    Anybody who can guide?

    Thanks!

    Friday, March 21, 2014 11:08 AM
  • Hi,

    Anybody who can help?

    I thought Forum is place where i can get help. From last 1.5 week i am struggling with this.

    Is there anybody who can guide? I found many people contribute to forum but ddidnt get help from anybody.

    Would somebody guide me where i can get help?

    Thanks!

    Tuesday, March 25, 2014 10:30 AM