Authorization requires one or more of the following IAM permissions on the specified resource scope:
cloudasset.assets.searchAllResources
cloudasset.assets.analyzeOrgPolicy
Query parameters
Parameters
constraint
string
Required. The name of the constraint to analyze organization policies for. The response only contains analyzed organization policies for the provided constraint.
filter
string
The expression to filter AnalyzeOrgPoliciesResponse.org_policy_results. Filtering is currently available for bare literal values and the following fields: * consolidatedPolicy.attached_resource * consolidatedPolicy.rules.enforce
When filtering by a specific field, the only supported operator is =. For example, filtering by consolidatedPolicy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001" will return all the Organization Policy results attached to "folders/001".
The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating policyBundle. The evaluation will respect the organization policy hierarchy rules.
If the constraint is defined with default policy, it will also appear in the list.
project
string
The project that this consolidated policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the consolidated policy belongs to a project.
folders[]
string
The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.
organization
string
The organization that this consolidated policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to an organization.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-30 UTC."],[[["\u003cp\u003eThis page details how to analyze organization policies under a specific scope using the \u003ccode\u003eanalyzeOrgPolicies\u003c/code\u003e method within the Google Cloud Asset Inventory API.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to analyze organization policies is a \u003ccode\u003eGET\u003c/code\u003e method to a specific URL structure, requiring a \u003ccode\u003escope\u003c/code\u003e path parameter representing the target organization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econstraint\u003c/code\u003e query parameter is required to specify which policy constraint should be analyzed, and \u003ccode\u003efilter\u003c/code\u003e can be used to filter down the result within specific parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an array of \u003ccode\u003eorgPolicyResults\u003c/code\u003e, which each provide details on the organization policies within the specified scope, in addition to a \u003ccode\u003enextPageToken\u003c/code\u003e for pagination and a \u003ccode\u003econstraint\u003c/code\u003e field with the constraint definition.\u003c/p\u003e\n"],["\u003cp\u003eThe authorization for this method requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and specific IAM permissions on the given scope, such as \u003ccode\u003ecloudasset.assets.analyzeOrgPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: analyzeOrgPolicies\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.AnalyzeOrgPoliciesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [OrgPolicyResult](#OrgPolicyResult)\n - [JSON representation](#OrgPolicyResult.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nAnalyzes organization policies under a scope.\n\n### HTTP request\n\n`GET https://cloudasset.googleapis.com/v1/{scope=*/*}:analyzeOrgPolicies`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe response message for [AssetService.AnalyzeOrgPolicies](/asset-inventory/docs/reference/rest/v1/TopLevel/analyzeOrgPolicies#google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies).\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nOrgPolicyResult\n---------------\n\nThe organization policy result to the query."]]