PasswordPolicyScope
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
列舉 |
SCOPE_UNSPECIFIED |
未指定範圍。密碼需求會套用至工作資料夾裝置的工作資料夾,以及全代管裝置或專用裝置的整部裝置。 |
SCOPE_DEVICE |
密碼相關規定只會套用至裝置。 |
SCOPE_PROFILE |
密碼要求只會套用到工作資料夾。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003ePassword requirements can be applied to the entire device, solely to the work profile, or be left unspecified, defaulting to the work profile for work profile devices and the whole device for fully managed or dedicated devices.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSCOPE_DEVICE\u003c/code\u003e enum enforces password requirements exclusively on the device.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSCOPE_PROFILE\u003c/code\u003e enum enforces password requirements exclusively on the work profile.\u003c/p\u003e\n"]]],["Password requirements can be applied to different scopes: `SCOPE_UNSPECIFIED`, `SCOPE_DEVICE`, and `SCOPE_PROFILE`. `SCOPE_UNSPECIFIED` applies requirements to the work profile on work profile devices and to the entire device on fully managed or dedicated devices. `SCOPE_DEVICE` limits requirements to the device itself, while `SCOPE_PROFILE` restricts them to the work profile. The table provides definitions for each scope enum.\n"],null,["Scope that the password requirement applies to.\n\n| Enums ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `SCOPE_UNSPECIFIED` | The scope is unspecified. The password requirements are applied to the work profile for work profile devices and the whole device for fully managed or dedicated devices. |\n| `SCOPE_DEVICE` | The password requirements are only applied to the device. |\n| `SCOPE_PROFILE` | The password requirements are only applied to the work profile. |"]]