您好使用 OAuth 2.0 客户端 ID 生成的 secret 文件。在那个 secret 文件中,我没有看到任何 google 邮件地址来验证或访问该邮件地址的权限。仍然面临以下错误。
Arg, there was an API error : 403 : User does not have sufficient permissions for this profile.
我怎么知道,对于哪个用户,我们没有足够的权限?
请在这件事上给予我帮助
最佳答案
您已经创建了一个用于您的应用程序的 Oauth2 客户端。当应用程序运行时,用户需要使用他们的 Google 帐户登录并授予应用程序(客户端)访问其数据的权限。如果您有兴趣,我有一篇文章解释了 google oauth2 的工作原理。 Oauth2 for beginners
User does not have sufficient permissions for this profile.
表示您已通过身份验证的用户无权访问您尝试请求数据表单的 Google Analytics 配置文件。尝试做 Accountsummires.list这将返回当前经过身份验证的用户可以访问的 Google Analytics 帐户列表,以及您可以从中请求数据的帐户。
Question: How come I know, to which user, we do not have sufficient privileges?
您有一个您尝试访问的个人资料 ID 查找有权访问该个人资料的人并让他们运行您的应用程序。当他们登录并进行身份验证后,他们将能够看到数据。
关于google-analytics - 分析 Google API 错误 403 : “User does not have any Google Analytics Account” ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50369495/