简体   繁体   English

Firebase 初始化函数返回 403 调用者没有权限

[英]Firebase init functions returns 403 caller does not have permission

I'm trying to execute "firebase init functions" as a Firebase admin (not owner) in an existing project but receive the following 403 error:我正在尝试在现有项目中以 Firebase 管理员(不是所有者)身份执行“firebase init 函数”,但收到以下 403 错误:

➜  website git:(master) ✗ firebase init functions

     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  /Users/cliff/Work/map/website

Before we get started, keep in mind:

  * You are initializing in an existing Firebase project directory


=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add, 
but for now we'll just set up a default project.

i  .firebaserc already has a default project, using my-web-project.

=== Functions Setup

A functions directory will be created in your project with a Node.js
package pre-configured. Functions can be deployed with firebase deploy.


Error: HTTP Error: 403, The caller does not have permission

Having trouble? Try firebase [command] --help
➜  website git:(master) ✗ 

Any suggestions?有什么建议么?

Apparently, if you're NOT the Firebase Owner then you need to have an additional permission added by the Owner as follows:显然,如果您不是 Firebase 所有者,那么您需要拥有所有者添加的额外权限,如下所示:

Error: Missing permissions required for functions deploy.错误:缺少部署函数所需的权限。 You must have permission iam.serviceAccounts.ActAs on service account my-web-project@appspot.gserviceaccount.com.您必须对服务帐户 my-web-project@appspot.gserviceaccount.com 具有 iam.serviceAccounts.ActAs 权限。

To address this error, ask a project Owner to assign your account the "Service Account User" role from this URL:要解决此错误,请项目所有者为您的帐户分配此 URL 中的“服务帐户用户”角色:

https://console.cloud.google.com/iam-admin/iam?project=my-web-project https://console.cloud.google.com/iam-admin/iam?project=my-web-project

Hope this helps someone in the future.希望这对将来的人有帮助。

The output is telling you that the CLI has found an existing project called "my-web-project" using a.firebaserc file in the current directory or one of its parent directories. output 告诉您 CLI 在当前目录或其父目录之一中使用 .firebaserc 文件找到了一个名为“my-web-project”的现有项目。 The error is telling you that the Google user account you are logged in as does not have permission to work with that project.该错误告诉您您登录的 Google 用户帐户无权使用该项目。

It's not clear what your intent was in running this command, but you will have to either:目前尚不清楚您运行此命令的意图是什么,但您必须:

  • create a new directory and a new project to work with创建一个新目录和一个新项目来处理
  • or grant the current user some sort of access to work with the existing project that the CLI found或授予当前用户某种访问权限以使用 CLI 找到的现有项目

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase CLI 如何更改项目范围?firebase init(错误:403,调用者没有权限)使用另一个帐户的项目网址 - Firebase CLI how to change project scope?firebase init(error:403, The caller does not have permission) uses project url of another account 403 调用者没有 Firebase 管理 API addFirebase 的权限 - 403 The caller does not have permission for Firebase Management API addFirebase 呼叫者没有权限。 403 - The caller does not have permission. 403 错误:HTTP 错误:403,调用者没有权限 - Error: HTTP Error: 403, The caller does not have permission 调用动态链接分析API时,调用者没有权限[403] - The caller does not have permission [403] when calling Dynamic Links Analytics API 错误:HTTP 错误:403,调用者没有权限 - 在 flutter 中创建云 function 时 - Error: HTTP Error: 403, The caller does not have permission - when create cloud function in flutter 调用者没有权限 firebase REST api 获取程序化创建的动态短链接的统计信息 - The caller does not have permission firebase REST api to get statistics of programmatic created dynamic short link IOS中的FCM错误:调用者没有权限? - FCM error in IOS : The caller does not have permission? “调用者没有权限”尝试使用 Firebase Admin SDK 创建自定义令牌 - “Caller does not have permission” trying to create custom token with Firebase Admin SDK 尝试使用 firebase-admin 从 Cloud Run 服务访问 FirestoreAdminClient。 错误:7 PERMISSION_DENIED:调用者没有权限 - Trying to access FirestoreAdminClient from Cloud Run service using firebase-admin. ERROR: 7 PERMISSION_DENIED: The caller does not have permission
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM