title: "The current user has insufficient permissions to perform the requested operation.” - Google Play Developer API
body: <p>I am having trouble calling the Google Play Developer API.</p>
  <p>I have followed all steps listed on <a href="https://developers.google.com/android-publisher/authorization" rel="noreferrer">https://developers.google.com/android-publisher/authorization</a> . This includes</p>
  <ol>
  <li>Create Project and enabled <strong>Google Play Android Developer API</strong> (with my Google Play Console Account)</li>
  <li>Link the project through Settings &gt; Developer Account &gt; API Access</li>
  <li>Grant access to service account with finance permissions to the app through the Google Play Console.</li>
  <li>Create <strong>OAuth 2.0 Client Id</strong>, <strong>Client Secret</strong>, and <strong>Redirect URI</strong> credentials.</li>
  <li>Generate the <strong>Refresh Token</strong> and the <strong>Access Token</strong> by sending POST request.</li>
  </ol>
  <p>Then, to call the purchases.subscriptions.get API, I used the following CURL command:</p>
  <p>(<a href="https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/get" rel="noreferrer">https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/get</a>)</p>
  <pre><code>curl -X GET &quot;https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}&quot; -H &quot;Authorization: Bearer {access_token}&quot; -H &quot;Accept: application/json&quot; --compressed
  </code></pre>
  <p>However, I am receiving the following error:</p>
  <pre><code>&quot;error&quot;: {
      &quot;code&quot;: 401, 
      &quot;message&quot;: &quot;The current user has insufficient permissions to perform the requested operation.&quot;, 
      &quot;errors&quot;: [
        {
          &quot;domain&quot;: &quot;androidpublisher&quot;, 
          &quot;message&quot;: &quot;The current user has insufficient permissions to perform the requested operation.&quot;, 
          &quot;reason&quot;: &quot;permissionDenied&quot;
        }
      ]
    }
  }
  </code></pre>
  <p>I have read and implemented changes recommended in other posts such as</p>
  <ol>
  <li>added in-app product/subscription before granting permission or linking to service account</li>
  <li>opened &quot;in-app products/subscription&quot; and performed some updates</li>
  <li>Verified all <em>Users and Permissions</em> through Google Play Console
  <ul>
  <li>eg. service account is admin user</li>
  </ul>
  </li>
  <li>waited over 48 hours to allow Google to propagate all access rights for APIs.</li>
  </ol>
  <p>I have also tried calling the API through
  <a href="https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/get#authorization-scopes" rel="noreferrer">https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/get#authorization-scopes</a>
  but still no luck (get an error).</p>
  <p>If anyone has any suggestions, that would be very much appreciated. Thanks.</p>