简体   繁体   中英

Error: 7 PERMISSION_DENIED: Permission 'recaptchaenterprise.assessments.create' denied on resource

I keep getting this error, I am trying to implement google reCaptcha v3, I gave myself all possible permissions on my service account but nothing seems to work. I don't even understand the error.

these are some lines of the error from the terminal.

Error: 7 PERMISSION_DENIED: Permission 'recaptchaenterprise.assessments.create' denied on resource '//cloudresourcemanager.googleapis.com/projects/my-project-auth-330511' (or it may not exist)

...\node_modules@grpc\grpc-js\build\src\call.js:31 return Object.assign(new Error(message), status);

statusDetails: [
    ErrorInfo {
      metadata: {
        permission: 'recaptchaenterprise.assessments.create',
        resource: 'projects/my-project-auth-330511'
      },
      reason: 'IAM_PERMISSION_DENIED',
      domain: 'cloudresourcemanager.googleapis.com'
    }
  ],
  reason: 'IAM_PERMISSION_DENIED',
  domain: 'cloudresourcemanager.googleapis.com',

I would like to know what causes this error.

You should create service account at credentials page Give reCaptcha Enterprise Agent role on creation (we did not manage to add roles to existing service-account)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM