CloudAsset.V1.AnalyzeIamPolicy doesn't return analysisResult object with permissions query selector #19056
Labels
api: cloudasset
Issues related to the Cloud Asset Inventory API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: question
Request for information or clarification. Not an issue.
google-api-java-client-services/clients/google-api-services-cloudasset/v1/2.0.0/com/google/api/services/cloudasset/v1/CloudAsset.java
Line 2776 in a08060c
Hi, I'm using CloudAsset.V1.AnalyzeIamPolicy for finding list of permissions for a specific service account on a specific project.
When I'm using setAnalysisQueryAccessSelectorPermissions(List.of("bigquery.datasets.get")) for CloudAsset.V1.AnalyzeIamPolicy request I'm receiving response without analysisResult object. Without setAnalysisQueryAccessSelectorPermissions(List.of("bigquery.datasets.get")) it works fine, but I need to set permissions as a filter before I execute request. See attached screenshots
Meanwhile https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/analyzeIamPolicy has webform to test the method. And it's working in both cases (with and without permissions selector) with the same parameters.
See attached json
I'm using Java 17
Library and its version:
com.google.apis
google-api-services-cloudasset
v1-rev20231103-2.0.0
all required permissions are granted:
cloudasset.assets.analyzeIamPolicy,
cloudasset.assets.searchAllResources
cloudasset.assets.searchAllIamPolicies
and a target resource totally has the searched permission
The text was updated successfully, but these errors were encountered: