Answers.Body: <p>You must also make the user an admin in the Users panel of the host CMS (wordpress, in this case). It's not sufficient to choose <code>Administrators</code> as the value for the "group" dropdown in the "New Individual" form of CiviCRM.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-27T20:55:38.667Z
Answers.LastActivityDate: 2018-03-27T20:55:38.667Z
Answers.UserDisplayName: mnieber
Body: <p>(I'm using version 4.7 based on Wordpress)</p>
  
  <p>When making a REST api call to retrieve a ContributionPage instance, the response tells me that I "require administer CiviCRM". However, the API key is associated with a user in the Administrators group of CiviCRM (this was configured as such using the "group" dropdown in the "New Individual" form of the CiviCRM contacts menu) . For other entities such as "Contact" the call works.</p>
  
  <pre><code>    # get contribution page
      resp = requests.get(
          url,
          params=dict(
              entity='ContributionPage',
              action='getsingle',
              api_key='xxxxxxxxxxxxxxxx',
              key='xxxxxxxxxxxxxxx',
              json={"id":1}
          )
      )
      print(resp.text)
  
  {"error_code":"unauthorized","entity":"ContributionPage","action":"getsingle","is_error":1,"error_message":"API permission check failed for ContributionPage\/getsingle call; insufficient permission: require administer CiviCRM"}
  </code></pre>
  
  <p>Does anyone know what could be the problem?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-23T18:50:01.987Z
Comments.Text: Are you using Drupal as CMS. And with an user in the Administrators group do you mean the Administrors role in Drupal?
Comments.UserDisplayName: Kainuk - CiviCooP
Tags: <civicontribute><api><rest>
Title: "API permission check failed" for admin user
ThreadText: # "API permission check failed" for admin user
  
  (Asked by: username_0 on 2018-03-22)
  
  (I'm using version 4.7 based on Wordpress)
  When making a REST api call to retrieve a ContributionPage instance, the response tells me that I "require administer CiviCRM". However, the API key is associated with a user in the Administrators group of CiviCRM (this was configured as such using the "group" dropdown in the "New Individual" form of the CiviCRM contacts menu) . For other entities such as "Contact" the call works.
      # get contribution page
      resp = requests.get(
          url,
          params=dict(
              entity='ContributionPage',
              action='getsingle',
              api_key='xxxxxxxxxxxxxxxx',
              key='xxxxxxxxxxxxxxx',
              json={"id":1}
          )
      )
      print(resp.text)
  
  {"error_code":"unauthorized","entity":"ContributionPage","action":"getsingle","is_error":1,"error_message":"API permission check failed for ContributionPage\/getsingle call; insufficient permission: require administer CiviCRM"}
  
  Does anyone know what could be the problem?
  
  **Tags:** civicontribute, api, rest
  
  > **Comments:**
  > **username_1**: Are you using Drupal as CMS. And with an user in the Administrators group do you mean the Administrors role in Drupal?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-03-27. Score: 2 | Accepted answer
  
  You must also make the user an admin in the Users panel of the host CMS (wordpress, in this case). It's not sufficient to choose `Administrators` as the value for the "group" dropdown in the "New Individual" form of CiviCRM.
  
  
  ---
  
  