web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CrmSvcUtil Privileges

(0) ShareShare
ReportReport
Posted on by 20

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)
  • Al Ericson Profile Picture
    240 on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans