Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

CloudAsset.V1.AnalyzeIamPolicy doesn't return analysisResult object with permissions query selector

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:
<dependency>
    <groupId>com.google.apis</groupId>
    <artifactId>google-api-services-cloudasset</artifactId>
    <version>v1-rev20231103-2.0.0</version>
</dependency>WithoutPermissionSelector.PNGWithPermissionSelector.PNG

0 1 380
1 REPLY 1