Advanced & Automation
Android 5.0+ (API 21+)
Risk: MODIFIES_DEVICE
Create Android Multi-User Profile
Creates a new secondary Android user profile or work profile (managed profile).
Command Syntax
adb shell pm create-user
Generic Syntax:
pm create-user [--profileOf <USER_ID>] [--managed] [--restricted] [--ephemeral] <USER_NAME>
Options & Parameters
| Flag | Description |
|---|---|
| --managed | Create as enterprise managed work profile. |
| --profileOf <ID> | Parent user ID (0 for primary). |
| --ephemeral | Delete user immediately upon log off. |
Real-World Usage Examples
Create standard secondary user
Creates user profile.
adb shell pm create-user "TestUser"
Output:
Success: created user id 10
Create managed work profile
Creates isolated work profile.
adb shell pm create-user --profileOf 0 --managed "Work Profile"
Output:
Success: created user id 11