查看政策值
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以使用 customers.policies.resolve
方法查看特定目標資源 (機構單位) 的政策值。如要指定要查看的政策,請使用 policySchemaFilter
參數。
範例:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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`."]]