นโยบายตัวอย่าง: อุปกรณ์ที่มีโปรไฟล์งาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้มีตัวอย่างนโยบายสำหรับอุปกรณ์ที่มีโปรไฟล์งาน
อุปกรณ์ส่วนตัว
หลังจากจัดสรรอุปกรณ์ส่วนตัวที่มีโปรไฟล์งานแล้ว Android Device Policy จะใช้การตั้งค่านโยบายกับ
โปรไฟล์งานเท่านั้น วิธีนี้จะช่วยให้สามารถใช้นโยบายเดียวกันนี้กับ
อุปกรณ์ที่มีโปรไฟล์งานและอุปกรณ์ที่มีการจัดการครบวงจร
// Applies to the work profile.
"passwordRequirements": {
"passwordMinimumLength": 6,
"passwordQuality": "ALPHABETIC"
},
"applications": [{
"defaultPermissionPolicy": "GRANT",
"installType": "FORCE_INSTALLED", // Auto-installs app in the work profile
"packageName": "com.google.android.gm"
},
{
"installType": "AVAILABLE", // Adds app to the work profile's managed Play Store
"packageName": "com.google.android.apps.docs"
}],
// Applies to the whole device.
"parentProfilePasswordRequirements": {
"passwordMinimumLength": 4,
"passwordQuality": "NUMERIC_COMPLEX"
}
อุปกรณ์ของบริษัท
หลังจากจัดสรรอุปกรณ์ของบริษัทที่มีโปรไฟล์งานแล้ว
Android Device Policy จะนำการตั้งค่านโยบายส่วนใหญ่ไปใช้กับงานโดยอัตโนมัติ
โปรไฟล์เท่านั้น แม้ว่าโปรไฟล์ส่วนตัวจะรักษาความเป็นส่วนตัวของผู้ใช้ แต่องค์กรต่างๆ สามารถ
บังคับใช้ข้อจำกัดและการตั้งค่าที่เลือกในโปรไฟล์ส่วนตัวและทั่วทั้ง
ทั่วทั้งอุปกรณ์
workProfilewidgets
ช่วยให้ผู้ดูแลระบบไอทีควบคุมวิดเจ็ตที่จะแสดงบนหน้าจอหลักของอุปกรณ์ได้มากขึ้น
ปัจจุบันมีการตั้งค่าเป็นไม่อนุญาตโดยค่าเริ่มต้น แต่สามารถอนุญาตให้ใช้ API ระดับแอปพลิเคชัน workProfileWidgets
และ workProfileWidgetsDefault
ระดับอุปกรณ์ได้
นโยบายการใช้งานส่วนตัว
องค์กรสามารถบังคับใช้ข้อจำกัดบางอย่างในโปรไฟล์ส่วนตัว
อุปกรณ์ของบริษัท เช่น การบล็อกการติดตั้งแอปบางอย่าง
ปิดใช้กล้องและกำหนดขีดจำกัดว่าผู้ใช้สามารถหยุดกล้องไว้ชั่วคราวได้นานเพียงใด
โปรไฟล์งาน โปรดดู personalUsagePolicies
เพื่อดูข้อมูลเพิ่มเติม
นโยบายทั้งอุปกรณ์
นโยบายในตารางนี้จะใช้กับทั้งอุปกรณ์
ชื่อนโยบาย |
|
|
frpAdminEmails |
deviceOwnerLockScreenInfo |
systemUpdate |
addUserDisabled |
bluetoothDisabled |
bluetoothConfigDisabled |
cellBroadcastsConfigDisabled |
mobileNetworksConfigDisabled |
tetheringConfigDisabled |
wifiConfigDisabled |
dataRoamingDisabled |
shareLocationDisabled |
smsDisabled |
usbFileTransferDisabled |
autoTimeRequired |
mountPhysicalMediaDisabled |
outgoingCallsDisabled |
setWallpaperDisabled |
unmuteMicrophoneDisabled |
|
|
นโยบายตัวอย่าง
// Applies to the work profile
"passwordRequirements": {
"passwordMinimumLength": 6,
"passwordQuality": "ALPHABETIC"
},
"applications": [{
"defaultPermissionPolicy": "GRANT",
"installType": "FORCE_INSTALLED", // Auto-installs app in the work profile
"packageName": "com.google.android.gm"
},
{
"installType": "AVAILABLE", // Adds app to the work profile's managed Play Store
"packageName": "com.google.android.apps.docs"
}],
// Applies to the personal profile
"personalUsagePolicies": {
"personalPlayStoreMode": "BLACKLIST",
"personalApplicationPolicy": [{
"packageName": "com.example.app",
"installType": "BLOCKED"
}],
"maxDaysWithWorkOff": 3,
"cameraDisabled": true,
"screenCaptureDisabled": true
},
// Applies to the whole device.
"bluetoothDisabled": true,
"usbFileTransferDisabled": true
ปัญหาที่เป็นที่ทราบแล้ว
ในอุปกรณ์ของบริษัท การดึงข้อมูลและอัปเดตนโยบายการใช้งานส่วนบุคคลอาจไม่มีผลในทันที (ความล่าช้าไม่ควรเกิน 10 นาที) จนกว่าจะมีการแจ้งเตือน "ไม่พบผลลัพธ์" บนหน้าจอ ไม่เช่นนั้นผู้ใช้อาจติดตั้งแอปใดก็ได้จาก Play Store ระหว่างการเริ่มต้นใช้งานโทรศัพท์ไปจนถึงการโหลดและใช้นโยบายการใช้งานส่วนบุคคล
หลังจากใช้นโยบายการใช้งานส่วนบุคคลแล้ว ให้รอ 10 นาที แล้วเริ่มการอัปเดตแคช (เช่น โดยการเลือกแอป) จากนั้นเปิดแอป Play ส่วนตัวอีกครั้ง จากนั้น ควรใช้นโยบายการใช้งานส่วนบุคคลอย่างถูกต้อง
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis page provides example policies for managing work profiles on both personally-owned and company-owned devices.\u003c/p\u003e\n"],["\u003cp\u003eFor personally-owned devices, policies primarily affect the work profile, allowing for separate work and personal data management.\u003c/p\u003e\n"],["\u003cp\u003eCompany-owned devices offer more granular control, enabling policies for the work profile, personal profile, and the entire device.\u003c/p\u003e\n"],["\u003cp\u003eIT admins can control widget display on the home screen using \u003ccode\u003eworkProfilewidgets\u003c/code\u003e and \u003ccode\u003eworkProfileWidgetsDefault\u003c/code\u003e APIs.\u003c/p\u003e\n"],["\u003cp\u003eThere's a known issue with personal usage policy updates on company-owned devices, potentially causing a delay in policy enforcement.\u003c/p\u003e\n"]]],["The content details policies for devices with work profiles, distinguishing between personally-owned and company-owned scenarios. Policies applied to work profiles include password requirements and application management (forced installation or availability). Company-owned devices allow enterprises to also enforce select restrictions on personal profiles, such as blocking app installations, disabling the camera, and limiting work profile pauses. Additionally, device-wide policies cover settings like Bluetooth, USB file transfers, and more. There is a delay of applying personal usage policy. Work profile widgets are disabled by default.\n"],null,["# Example policies: Work profile devices\n\nThis page contains example policies for devices with work profiles.\n\nPersonally-owned devices\n------------------------\n\nAfter provisioning a [personally-owned device with a work profile](/android/management/provision-device#personally-owned_devices), Android Device Policy automatically applies policy settings to\nthe work profile only. This makes it possible to apply the same policy to\ndevices with work profiles and [fully managed devices](/android/management/policies/fully-managed-devices). \n\n```carbon\n// Applies to the work profile.\n\"passwordRequirements\": {\n \"passwordMinimumLength\": 6,\n \"passwordQuality\": \"ALPHABETIC\"\n},\n\"applications\": [{\n \"defaultPermissionPolicy\": \"GRANT\",\n \"installType\": \"FORCE_INSTALLED\", // Auto-installs app in the work profile\n \"packageName\": \"com.google.android.gm\"\n },\n {\n \"installType\": \"AVAILABLE\", // Adds app to the work profile's managed Play Store\n \"packageName\": \"com.google.android.apps.docs\"\n}],\n\n// Applies to the whole device.\n\"parentProfilePasswordRequirements\": {\n \"passwordMinimumLength\": 4,\n \"passwordQuality\": \"NUMERIC_COMPLEX\"\n}\n```\n\nCompany-owned devices\n---------------------\n\nAfter a provisioning a [company-owned device with a work profile](/android/management/provision-device#company-owned_devices_for_work_and_personal_use),\nAndroid Device Policy automatically applies most policy settings to the work\nprofile only. While the personal profile maintains user privacy, enterprises can\nenforce select restrictions and settings in the personal profile and across the\nwhole the device.\n\n### Work Profile Widgets\n\n`workProfilewidgets` provides greater control for IT admins over what widgets display on the home screen of a device.\nThis is currently set to disallowed as default but can be allowed using the application level [`workProfileWidgets`](/android/management/reference/rest/v1/enterprises.policies#workprofilewidgets) and device level [`workProfileWidgetsDefault`](/android/management/reference/rest/v1/enterprises.policies#crossprofilepolicies) APIs.\n\n### Personal usage policies\n\nEnterprise can enforce certain restrictions in the personal profile of a\ncompany-owned device, such as blocking the installation of specific apps,\ndisabling the camera, and setting a limit for how long a user can pause their\nwork profile. See [`personalUsagePolicies`](/android/management/reference/rest/v1/enterprises.policies#personalusagepolicies)\nfor more information.\n\n### Device-wide policies\n\nThe policies in this table apply to an entire device.\n\n| Policy name | | |\n|--------------------------------|--------------------------------|---------------------------|\n| `frpAdminEmails` | `deviceOwnerLockScreenInfo` | `systemUpdate` |\n| `addUserDisabled` | `bluetoothDisabled` | `bluetoothConfigDisabled` |\n| `cellBroadcastsConfigDisabled` | `mobileNetworksConfigDisabled` | `tetheringConfigDisabled` |\n| `wifiConfigDisabled` | `dataRoamingDisabled` | `shareLocationDisabled` |\n| `smsDisabled` | `usbFileTransferDisabled` | `autoTimeRequired` |\n| `mountPhysicalMediaDisabled` | `outgoingCallsDisabled` | `setWallpaperDisabled` |\n| `unmuteMicrophoneDisabled` | | |\n\n### Example policy\n\n```carbon\n// Applies to the work profile\n\"passwordRequirements\": {\n \"passwordMinimumLength\": 6,\n \"passwordQuality\": \"ALPHABETIC\"\n},\n\"applications\": [{\n \"defaultPermissionPolicy\": \"GRANT\",\n \"installType\": \"FORCE_INSTALLED\", // Auto-installs app in the work profile\n \"packageName\": \"com.google.android.gm\"\n },\n {\n \"installType\": \"AVAILABLE\", // Adds app to the work profile's managed Play Store\n \"packageName\": \"com.google.android.apps.docs\"\n}],\n\n// Applies to the personal profile\n\"personalUsagePolicies\": {\n \"personalPlayStoreMode\": \"BLACKLIST\",\n \"personalApplicationPolicy\": [{\n \"packageName\": \"com.example.app\",\n \"installType\": \"BLOCKED\"\n }],\n \"maxDaysWithWorkOff\": 3,\n \"cameraDisabled\": true,\n \"screenCaptureDisabled\": true\n},\n\n// Applies to the whole device.\n\"bluetoothDisabled\": true,\n\"usbFileTransferDisabled\": true\n```\n\n### Known Issue\n\nOn a company-owned device, retrieving and updating the personal usage policy may not be immediate (the delay should be no longer than ten minutes); until this has occured the \"No result found\" screen is displayed. Otherwise a user could install any app from the Play store, between phone start up and the personal usage policy being loaded and applied.\n\nAfter applying a personal usage policy, wait ten minutes, then trigger a cache update (e.g. by selecting an app) and then re-open the personal Play app. The personal usage policy should then have been applied correctly."]]