xsheru
xsheru

Reputation: 497

GCP - The caller does not have a permission

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.

Please help guys!

Upvotes: 1

Views: 1994

Answers (2)

Lakeesh Anand AN
Lakeesh Anand AN

Reputation: 151

cloudmessaging.messages.create is supported by the following roles

  1. Firebase Admin
  2. Firebase Grow Admin
  3. Firebase Admin SDK Administrator Service Agent
  4. Firebase SDK Provisioning Service Agent

U can check the following page for the roles. Understanding Roles

Upvotes: 2

KevinH
KevinH

Reputation: 324

In order to gain the permission "cloudmessaging.messages.create" please attempt to use one of the following roles:

    roles/firebase.admin

or

    roles/firebase.growthAdmin

As identified by the community via public documentation, the Cloud Messaging Roles do not contain the permission required in this case.

Upvotes: 5

Related Questions