Google Cloud Discovery Validate Service Account pattern errorIssue Executing Discovery on Google Cloud Platform (GCP) - Validate Service Account pattern fails with the error as below 2022-09-08 16:07:28: setAttribute(method,GET)2022-09-08 16:07:28: setAttribute(formatted,true)2022-09-08 16:07:28: setAttribute(body,)2022-09-08 16:07:28: setAttribute(url,https://cloudresourcemanager.googleapis.com/v2/folders/sync-rapid-snow-poc-dev-dtep)2022-09-08 16:07:28: setAttribute(headers,null)2022-09-08 16:07:28: setAttribute(body,null)2022-09-08 16:07:29: Exception occurred while executing operation Cloud REST Query. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Cloud request failed. URL: https://cloudresourcemanager.googleapis.com/v2/folders/sync-rapid-snow-poc-dev-dtep Status: 400 Response: HttpResponseProxy{HTTP/1.1 400 Bad Request [Vary: X-Origin, Vary: Referer, Content-Type: application/json; charset=UTF-8, Date: Thu, 08 Sep 2022 14:07:29 GMT, Server: ESF, Cache-Control: private, X-XSS-Protection: 0, X-Frame-Options: SAMEORIGIN, X-Content-Type-Options: nosniff, Server-Timing: gfet4t7; dur=573, Accept-Ranges: none, Vary: Origin,Accept-Encoding, Connection: close, Transfer-Encoding: chunked] ResponseEntityProxy{[Content-Type: application/json; charset=UTF-8,Chunked: true]}} (script_include:GoogleApiCommand; line 124). Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Cloud request failed. URL: https://cloudresourcemanager.googleapis.com/v2/folders/sync-rapid-snow-poc-dev-dtep Status: 400 Response: HttpResponseProxy{HTTP/1.1 400 Bad Request [Vary: X-Origin, Vary: Referer, Content-Type: application/json; charset=UTF-8, Date: Thu, 08 Sep 2022 14:07:29 GMT, Server: ESF, Cache-Control: private, X-XSS-Protection: 0, X-Frame-Options: SAMEORIGIN, X-Content-Type-Options: nosniff, Server-Timing: gfet4t7; dur=573, Accept-Ranges: none, Vary: Origin,Accept-Encoding, Connection: close, Transfer-Encoding: chunked] ResponseEntityProxy{[Content-Type: application/json; charset=UTF-8,Chunked: true]}} (script_include:GoogleApiCommand; line 124)CauseThe Pattern fails with the error because of either The Credentials configured are not accurate and API unable to capture the informationThe Credentials configured are good and accurate, but the Roles provided to the Account are not as per the Discovery requirementResolutionPlease communicate with the GCP Admin to understand the provided credentials to be tested and make sure "role/viewer" is provided to the account Refer : Credentials Section Google Cloud Platform discoveryUnderstanding roles