How to solve the error “Insufficient authorization to perform this action” in Web Services for Microsoft Dynamics GP?

The blow steps are used to enable users in a group to use Web Services for Dynamics GP to solve the error Insufficient authorization to perform this action in .Net code to call the Dynamics GP web service.

To enable users in a group to use Web Services for Microsoft Dynamics GP, follow these steps:

  1. Set the GPWebServicesAppPool application pool to the domain.

    Note The GPWebServicesAppPool application pool is the default application pool for the DynamicsGPWebServices virtual directory. 

    To do this, follow these steps:

    1. Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
    2. Expand the node of the local computer, expand Application Pools, right-click GPWebServicesAppPool, and then click Properties.
    3. On the Identity tab, set the domain account information, and then click OK.
  2. Modify a Web.config file in the following folder:
    C:\Program Files\Common Files\Microsoft Shared\Microsoft Dynamics\Security Admin Service\WebServices

    To do this, follow these steps:

    1. Use Notepad to open the Web.config file.
    2. Change the statement as follows:

      Existing statement

      <add key="AllowUserGroups" value="false" />

      Replacement statement

      <add key="AllowUserGroups" value="true" />
    3. Save the Web.config file.
  3. Modify a Web.config file in the following folder:
    C:\Program Files\Microsoft Dynamics\GPWebServices\WebServices

    To do this, follow these steps:

    1. Use Notepad to open the Web.config file.
    2. Change the statement as follows:

      Existing statement

      <add key="AccessCheckPrincipal" value="User" />

      Replacement statement

      <add key="AccessCheckPrincipal" value="UserAndGroup" />
    3. Save the Web.config file.
  4. Reset Internet Information Services (IIS). To do this, click Start, click Run, type iisreset, and then click OK.

Reference Link: http://support.microsoft.com/kb/944440

Hope this helps!!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s