查看政策值
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以使用 customers.policies.resolve
方法查看给定目标资源(组织部门)的政策值。如需指定要查看的政策,请使用 policySchemaFilter
参数。
示例:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003ecustomers.policies.resolve\u003c/code\u003e method allows you to view policy values for a specific Organizational Unit.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003epolicySchemaFilter\u003c/code\u003e parameter to define the policies you want to retrieve, specifying individual policies by schema name or multiple policies using schema namespaces and wildcards.\u003c/p\u003e\n"],["\u003cp\u003eWildcards in the \u003ccode\u003epolicySchemaFilter\u003c/code\u003e apply only to the leaf name level, requiring precise schema namespace specification for accurate policy retrieval.\u003c/p\u003e\n"]]],[],null,["# View policy values\n\nYou can view policy values for a given target resource (Organizational Unit)\nwith the [`customers.policies.resolve`](/chrome/policy/reference/rest/v1/customers.policies/resolve)\nmethod. To specify which policy you want to see, use the `policySchemaFilter`\nparameter.\n\nExamples:\n\n- To view a particular policy specify a schema name: `policySchemaFilter=chrome.users.ShowLogoutButton`\n- To view multiple policies in one response, specify a\n [schema namespace](/chrome/policy/guides/policy-schemas#schema_namespaces) and\n a wildcard in the place of the leaf name: `policySchemaFilter=chrome.users.*`\n\n | **Note:** Wildcards work at the leaf name level. `chrome.*` won't match any policies, as there aren't any `chrome.LEAF_NAME` policies. Likewise, `chrome.user.*` matches `chrome.users.A`, but not `chrome.users.apps.B`."]]