Error: couldn't create User

Search This thread

Tortux4e

New member
Mar 6, 2021
1
0
Hello, I am getting the following error on a rooted android 9 device.

Code:
# pm create-user youser
Error: couldn't create User.

On the other hand, logcat displays the following message.

Code:
W UserManagerService: Cannot add user. no_add_user is enabled.

Is there a way to disable no_add_user ?
 

It_ler

Recognized Contributor
  • Aug 23, 2011
    11,927
    16,848
    Samsung Galaxy S8
    Samsung Galaxy S10
    Hello, I am getting the following error on a rooted android 9 device.

    Code:
    # pm create-user youser
    Error: couldn't create User.

    On the other hand, logcat displays the following message.

    Code:
    W UserManagerService: Cannot add user. no_add_user is enabled.

    Is there a way to disable no_add_user ?
    Have a look here:
    https://developer.android.com/reference/android/os/UserManager#DISALLOW_ADD_USER
    And here:
    https://developer.android.com/refer...roid.content.ComponentName, java.lang.String)

    On some devices, it may not work to remove the restriction to add users. Needs to be a multi-user system which is not managed by an organisation.