Assigned
Status Update
Comments
va...@google.com <va...@google.com>
ar...@google.com <ar...@google.com> #2
Hello,
Thank you for reaching out to us with your request.
We have duly noted your feedback and will thoroughly validate it. While we cannot provide an estimated time of implementation or guarantee the fulfillment of the issue, please be assured that your input is highly valued. Your feedback enables us to enhance our products and services.
We appreciate your continued trust and support in improving our Google Cloud Platform products. In case you want to report a new issue, please do not hesitate to create a new issue on the
Once again, we sincerely appreciate your valuable feedback; Thank you for your understanding and collaboration.
Description
I am creating a pubsub topic using terraform and assigning the Pub/Sub Editor role for the user for the topic.
I want that user may delete subscriptions from that topic. For example: gcloud pubsub subscriptions delete projects/project_name/subscriptions/subscription_name
However, I received "Not authorized" error
ERROR: Failed to delete subscription [projects/project_name/subscriptions/subscription_name]: User not authorized to perform this action. This command is authenticated as
abc@xyz.com which is the active account specified by the [core/account] property.
ERROR: (gcloud.pubsub.subscriptions.delete) Failed to delete the following: [subscription_name].
What you would like to accomplish: I want to delete a pubsub Subscription with PubSub editor role as documented in [1] please see the below attachment [2]
[1]
How this might work:
Internal documentation says to get the permissions that you need to delete subscriptions and manage them, ask your administrator to grant you the Pub/Sub
Editor (roles/pubsub.editor) IAM role on your topic or project. For more information about granting roles, see Manage access to projects, folders, and organizations.
To delete a subscription, as I confirmed from the product team we need permission on the subscription itself (or on its parent project).
If applicable, reasons why alternative solutions are not sufficient:
I am using hundreds of applications and thousands of dynamically created subscriptions and cannot manage each subscription separately. We can only manage pubsub topics.
Other information (workarounds you have tried, documentation consulted, etc): NA