我正在尝试使用以下方法在存储桶中的特定路径上触发我的功能:
exports.generateThumbnail = functions.storage.bucket("users").object().onChange(event => {});
当我尝试部署它时,控制台显示:
functions[generateThumbnail]: Deploy Error: Insufficient permissions to (re)configure a trigger (permission denied for bucket users). Please, give owner permissions to the editor role of the bucket and try again.
我怎样才能做到这一点?我是否需要设置 IAM 或存储桶权限或其他什么?