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 :
Microsoft Dynamics CRM (Archived)

Entitlement entity

(0) ShareShare
ReportReport
Posted on by

Hello Guys!

Hope you can help me.

There is a user that doesn't have permissions to read on the Entitlement entity but somebody else shared an incident with him in order to see a particular info.In the incident entity, I have a web resource with info of the Entitlement entity but since the user doesn't have permissions the js that shows that info fails.
Does someone have any idea of how can I fill my web resource with the info I need even if the user can't have the permissions assigned?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    you can impersonate a user to run the JS (in this case , maybe you can use admin but make sure you dont retrieve anything that not suppose to see or use by user). see below link for more information.

    dynamicscrmcoe.com/crm-2016-impersonating-user-using-javascript-crm-web-api

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello ,

    How you are retrieving the Entitlement information in your web resource , you should not pass the user context of the login user as the user does not have the access.

    As shared by Alex  you need to impersonate with system admin user to get the information from entitlement entity.

    https://msdn.microsoft.com/en-in/library/mt607702.aspx#bkmk_Howtoimpersonateauser

    Hope this helps.

  • Community Member Profile Picture
    on at

    Thanks so much I think this can works

  • Community Member Profile Picture
    on at

    Thanks!!

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    please mark the answer as verified , it would help the other members in future too.Thanks

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

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans