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

  • Question

  • Hello Experts,

    I have a requirement. Where i want to find if logged in user has User level permission on any entity or not.

    Do i have to check for Every role assigned to user?

    Can we directly fetch previlege entity and check using below fetchXML? I am using soap request and fetching previlege.. 

    I didn't specify anywhere user condition in above code.. Does it consider current user condition or we have to specify current user condition implicitly?

    <fetch mapping="logical">',
    '<entity name="privilege">',
    '<attribute name="name" />',
     '<attribute name="accessright" />',
      '<attribute name="canbebasic" />',
     '<filter type="and">',
    '<condition attribute="name" operator="eq" value="prvcreate' + entity + '" />',

    I know there is RetrievePriciaplAccessRequest for the same.. Can we achieve the requirement without this request?

    Please Note: i am using JavaScript Soap request and CRM 2013.


    Wednesday, March 12, 2014 5:02 PM

All replies

  • Hello MVP's and Experts,

    Please provide some guidance.


    Thursday, March 13, 2014 6:37 AM