GCP-呼叫者没有权限 [英] GCP - The caller does not have a permission
问题描述
我想添加Google Cloud Messaging&通知我的服务器.
I want to add Google Cloud Messaging & Notifications to my server.
我已在服务帐户中添加了以下角色,但仍然无法从服务器发送消息.
I have added following role to my service account, but still I couldn't send the messages from my server.
Firebase Cloud Messaging Admin
我进行了更深入的研究,发现我们需要得到以下许可才能使其正常工作.
I dig a little deeper and find out that we need following permission to make it work.
cloudmessaging.messages.create
默认情况下,此权限在所有访问帐户中均可用,但是如果我创建具有特定访问权限的新服务帐户,则在任何地方都找不到此权限.
This permission is available in default all access account but if I create new Service Account with specific access grants, I cant find this permission anywhere.
请帮助大家!
推荐答案
为了获得许可"cloudmessaging.messages.create",请尝试使用以下角色之一:
In order to gain the permission "cloudmessaging.messages.create" please attempt to use one of the following roles:
roles/firebase.admin
或
roles/firebase.growthAdmin
由社区通过公共文档,在这种情况下,云消息传递角色不包含所需的权限.
As identified by the community via public documentation, the Cloud Messaging Roles do not contain the permission required in this case.
这篇关于GCP-呼叫者没有权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!