
I'm attempting to generate proxy code for an online instance of Dynamics using the CrmSvcUtil tool as described in this article: http://msdn.microsoft.com/en-us/library/ff681561. I'm using the latest version of the SDK which I downloaded here: http://www.microsoft.com/en-us/download/details.aspx?id=24004.
Below is the command line I tried to run from a command prompt running as an administrator (sensitive data removed):
crmsvcutil /url:https://[my org].crm.dynamics.com/XRMServices/2011/Organization.svc
/language:CS
/out:My.Xrm.cs
/namespace:My.Xrm
/username:"[my username]"
/password:"[my password]"
When I ran the above I received the following error message
"Exiting program with exception: SecLib::CheckPrivilege failed. User: [user id], PrivelegeName: prvReadEntity, PrivilegeId: a3311f47-2134-44ee-a258-6774018d4bc3, Required Depth: Basic, BusinessUnitId: [business unit id]."
I thought I might to register my device, which I did using the device registration project located in the tools directory of the SDK. I then ran the following command line:
crmsvcutil /url:https://[my org].crm.dynamics.com/XRMServices/2011/Organization.svc
/language:CS
/out:My.Xrm.cs
/namespace:My.Xrm
/username:"[my username]"
/password:"[my password]"
/deviceid:[my device id]
/devicepassword:[my device password]
Only to receive the same error.
My guess is that the account I'm attempting to access the service with does not have the necessary permissions. What permissions are required?
*This post is locked for comments
I have the same question (0)Hi Adam,
The privilege missing according to the attached error is:
Read privilege for "Entity" at organization level for the Customization tab of the security role.
1. In CRM 2011, navigate to settings, administration, and security roles
2. Open the security role associated to the user, select the customization tab and apply organization level read prvilege to the Entity row. Save and close
Hope this helps,
Al Ericson