【问题标题】:The current user has insufficient permissions to perform the requested operation - Console Cloud Google当前用户没有足够的权限来执行请求的操作 - Console Cloud Google
【发布时间】:2022-01-14 07:31:03
【问题描述】:

我有一个启用了 Google Play Developer API 的 Google Dev Console 进程,并且该项目已链接到 Google Play 项目。在 Google Dev 控制台项目中,创建了一个服务帐户(我是该项目的所有者)。之后,我创建一个 json 文件密钥进行身份验证。尝试在 PHP、Google Developer API Playground 中使用 google-api-client 向我的应用程序的 In-App-Purchase 详细信息发送请求,但出现错误:“当前用户没有足够的权限执行请求的操作。”我已经等了28小时了。详情如下:

GET Request https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}?access_token={access_token}

回应

Array
(
    [error] => Array
        (
            [code] => 401
            [message] => *The current user has insufficient permissions to perform the requested operation.*
            [errors] => Array
                (
                    [0] => Array
                        (
                            [message] => The current user has insufficient permissions to perform the requested operation.
                            [domain] => androidpublisher
                            [reason] => permissionDenied
                        )

                )

        )

)

*我已授予 google play 开发者控制台的权限列表

【问题讨论】:

    标签: google-cloud-platform google-play-developer-api


    【解决方案1】:

    转到 https://console.cloud.google.com

    创建一个项目(或选择现有项目)

    创建一个具有 Pub/Sub Admin 角色的服务帐号

    转到 https://console.cloud.google.com/apis/library 并搜索“Google Play Android Developer API”

    启用该 API

    转到 https://play.google.com/apps/publish

    转到设置 > 开发者帐户 > API 访问

    链接您创建的项目

    将显示您创建的服务帐户。

    授予对 Play 控制台中应用的财务权限的访问权限

    如果以上步骤都正确,那么

    创建和删除任何临时应用产品以强制更新权限。

    【讨论】:

      猜你喜欢
      • 2022-01-07
      • 1970-01-01
      • 2015-12-14
      • 1970-01-01
      • 2016-08-26
      • 1970-01-01
      • 1970-01-01
      • 2016-11-03
      • 2022-11-17
      相关资源
      最近更新 更多