Hi,
I am having a serious problems with the SDK 4.12 Advanced Developer Extensions (XRM Framework) related to CRM access rights.
Symptom 1:
I deployed a custom ASP.NET site on the web server (Windows 2008 R2, same computer as CRM) and in web.config set set Authentication Type to Integrated. I'm having an entity (let's call it new_test) for which the specific user has only "read owned by me" rights.
The problem is that in CRM everything is OK, he sees only his own records, but when querying the entity through the XRM extensions (somenting like var x = from n in new_test select n) it returns ALL records! What's going on!?
Symptom 2:
I develop on my PC connecting to the server. The computer is not in the domain of the CRM Server. When using a hard coded administrator account in the XRM connection string everything is OK. But when putting in the test user there is throws an error like "not enought permisions to access the object" when doing the query.
When using the standard query expression with a CrmService and hard coded NetworkCredentials everything works fine. But when using the LINQ query it fails.
I thought that maybe it was because LINQ queries the some related objects the user doesn't have permisions to but 1. it has no custom relationships 2. doing something like "from n in new_test select n.new_name" (limiting the queried values to the name property of the custom entity) didn't fix the problem.
Did someone have similar issues and maybe found a solution? I can off course rewrite all LINQ code to use classic Query Expressions but that would be a lot of work, and 2. I really like the "new" way.
Please help.
Cheers,
Lukasz
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (